/* Top Header Styles - Mobile Optimized */

/* Variables are embedded in the CSS */

.top-header {
    background: #f8f9fa;
    color: #6c757d;
    font-size: 14px;
    border-bottom: 1px solid #dee2e6;
    transition: all 0.3s ease;
    position: relative;
    z-index: 998;
}

.top-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.top-header .top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    min-height: 48px;
}

/* MOBILE: Optimized for less space */
@media (max-width: 768px) {
    .top-header .top-header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 6px 0;
        min-height: 36px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .top-header .top-header-content {
        padding: 4px 0;
        min-height: 32px;
    }
}

/* Contact Information */
.top-header .contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 768px) {
    .top-header .contact-info {
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    /* Hide less critical items on mobile */
    .top-header .contact-info .contact-item.address,
    .top-header .contact-info .contact-item.schedule {
        display: none;
    }
}

@media (max-width: 480px) {
    .top-header .contact-info {
        gap: 6px;
    }
    
    /* Only show phone on very small screens */
    .top-header .contact-info .contact-item.email {
        display: none;
    }
}

.top-header .contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .top-header .contact-info .contact-item {
        gap: 4px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .top-header .contact-info .contact-item {
        font-size: 11px;
    }
}

.top-header .contact-info .contact-item i {
    color: #ee5f00;
    font-size: 12px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .top-header .contact-info .contact-item i {
        font-size: 11px;
        width: 12px;
    }
}

@media (max-width: 480px) {
    .top-header .contact-info .contact-item i {
        font-size: 10px;
        width: 10px;
    }
}

.top-header .contact-info .contact-item span,
.top-header .contact-info .contact-item a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-header .contact-info .contact-item span:hover,
.top-header .contact-info .contact-item a:hover {
    color: #ee5f00;
}

/* Social Media */
.top-header .social-media {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .top-header .social-media {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .top-header .social-media {
        gap: 4px;
    }
    
    /* Hide some social networks on very small screens */
    .top-header .social-media .social-link.twitter,
    .top-header .social-media .social-link.linkedin,
    .top-header .social-media .social-link.youtube {
        display: none;
    }
}

.top-header .social-media .social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #495057;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .top-header .social-media .social-link {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .top-header .social-media .social-link {
        width: 26px;
        height: 26px;
    }
}

.top-header .social-media .social-link:hover {
    background: #ee5f00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .top-header .social-media .social-link:hover {
        transform: none;
    }
}

.top-header .social-media .social-link i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .top-header .social-media .social-link i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .top-header .social-media .social-link i {
        font-size: 11px;
    }
}

/* Hide top header when sticky header is active */
body.sticky-header-active .top-header {
    display: none;
}

/* Responsive text adjustments */
@media (max-width: 960px) {
    .top-header {
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .top-header {
        font-size: 12px;
    }
    
    .top-header .top-header-content {
        padding: 4px 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .top-header {
        background: #2d3748;
        color: #e2e8f0;
        border-bottom-color: #4a5568;
    }
    
    .top-header .contact-info .contact-item span,
    .top-header .contact-info .contact-item a {
        color: #e2e8f0;
    }
    
    .top-header .contact-info .contact-item span:hover,
    .top-header .contact-info .contact-item a:hover {
        color: #ee5f00;
    }
}

/* Accessibility - respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .top-header * {
        transition: none !important;
        animation: none !important;
    }
    
    .top-header .social-media .social-link:hover {
        transform: none;
    }
}
