/* Shared Header Styles - Used across all Scrolletics pages */

/* Header Container */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Inner container with max-width constraint (like Familia) */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.header-logo img {
    width: 40px;
    height: 40px;
}

.header-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.blog-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
    margin-right: 1rem;
}

.blog-link:hover {
    color: #22D3EE;
}

.app-store-badge {
    height: 40px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    .header-logo img {
        width: 32px;
        height: 32px;
    }

    .header-logo span {
        display: none;
    }

    .header-nav {
        gap: 0.5rem;
    }

    .blog-link {
        font-size: 0.8rem;
        margin-right: 0.25rem;
    }

    .app-store-badge {
        height: 32px;
    }
}

/* Apple Smart App Banner Compatibility */
/* The banner adds ~84px on iOS Safari - fixed headers automatically adjust */
@supports (-webkit-touch-callout: none) {
    /* iOS-specific: Ensure header stays visible below smart banner */
    header {
        top: env(safe-area-inset-top, 0);
    }
}
