/**
 * Shared Styles for All PeakPro Tools
 * Language Selector & Advertisement Styles
 */

/* CSS Variables */
:root {
    --primary-color: #60ae4e;
    --primary-dark: #4a8f3d;
    --secondary-color: #60ae4e;
    --background: #f9fafb;
    --surface: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
}

.language-selector select {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    padding: 4px 8px;
    outline: none;
}

.language-selector select:hover {
    color: var(--primary-color);
}

/* Advertisement Styles */
.ad-container {
    margin: 20px auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.ad-container.header-ad {
    margin: 20px auto 30px;
}

.ad-container.sidebar-ad {
    margin: 0 auto 20px;
    max-width: 300px;
}

.ad-container.footer-ad {
    margin: 30px auto 20px;
}

.ad-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 40px 20px;
    color: #a0aec0;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    min-width: 300px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .language-selector {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
    }
    
    .language-selector select {
        font-size: 12px;
    }
    
    .ad-placeholder {
        min-width: 250px;
        padding: 30px 15px;
        font-size: 12px;
    }
}

/* Back to Home Link */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: background 0.3s ease;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.back-home:hover {
    background: rgba(255, 255, 255, 0.3);
}
