/**
 * Header and Footer Styles
 * Q8sy Custom Theme
 * 
 * Styles for custom header with logo and footer
 */

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    align-items: center;
}

/* Hide logo from header.php (we use JavaScript-added sticky logo instead) */
.custom-logo-link,
.site-header .custom-logo-link,
.site-header .custom-logo {
    display: none !important;
}

/* Custom logo in header - only for reference, hidden by default */
.custom-logo {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Hide default site title */
.wp-block-site-title,
.site-title,
h1.wp-block-site-title,
h2.wp-block-site-title,
.wp-block-site-title a,
header .wp-block-site-title,
header h1.wp-block-site-title,
header h2.wp-block-site-title {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Custom header logo - Sticky/Floating */
.custom-header-logo {
    display: inline-block !important;
    line-height: 0;
    text-decoration: none;
    z-index: 10000 !important;
    position: fixed;
    top: 15px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.custom-header-logo:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.custom-header-logo img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

/* Footer Styles */
.site-footer {
    background: var(--color-background, #f9fafb);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.site-info {
    color: var(--color-text-light, #6b7280);
    font-size: 14px;
}

.site-info p {
    margin: 0;
}

/* Footer Language Switcher */
.footer-language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.footer-lang-btn {
    color: var(--color-text-light, #6b7280);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 12px;
}

.footer-lang-btn:hover {
    color: var(--color-primary);
    background: rgba(30, 64, 175, 0.1);
    text-decoration: none;
}

.footer-lang-btn.active {
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(30, 64, 175, 0.1);
}

.lang-separator {
    color: var(--color-text-light, #9ca3af);
    font-size: 12px;
}

@media (max-width: 768px) {
    .footer-language-switcher {
        font-size: 11px;
    }
    
    .footer-lang-btn {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* Hide "proudly powered by WordPress" text */
.site-footer .wp-block-paragraph:has(a[href*="wordpress.org"]),
.site-footer p:has(a[href*="wordpress.org"]),
.site-footer a[href*="wordpress.org"],
.site-footer p:contains("WordPress"),
.site-footer p:contains("Designed with"),
.site-footer p:contains("proudly powered"),
footer .wp-block-paragraph:has(a[href*="wordpress.org"]),
footer p:has(a[href*="wordpress.org"]),
footer a[href*="wordpress.org"],
footer p:contains("WordPress"),
footer p:contains("Designed with"),
footer p:contains("proudly powered"),
footer .wp-block-paragraph a[href*="wordpress.org"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Add padding to body for fixed header */
body {
    padding-top: 70px;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 12px 15px;
    }
    
    .custom-logo {
        height: 45px;
        max-width: 160px;
    }
    
    .custom-header-logo {
        top: 12px;
        left: 15px;
        padding: 8px 12px;
    }
    
    .custom-header-logo img {
        height: 45px;
        max-width: 160px;
    }
    
    body {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .custom-logo {
        height: 40px;
        max-width: 140px;
    }
    
    .custom-header-logo {
        top: 10px;
        left: 10px;
        padding: 6px 10px;
        border-radius: 10px;
    }
    
    .custom-header-logo img {
        height: 40px;
        max-width: 140px;
    }
    
    body {
        padding-top: 55px;
    }
}
