/* Docs Page Styles */

/* ================================
   NAVIGATION OVERRIDE - WHITE ELEMENTS
   ================================ */
/* Make logo, navigation, contact button, and hamburger white on docs page
   ONLY when header is NOT scrolled (transparent background)
   AND mobile menu is NOT open */

/* Logo - invert to white when NOT scrolled */
.site-header:not(.site-header--scrolled) .site-header__logo-img {
    filter: brightness(0) invert(1) !important;
}

/* Override: Remove white invert when menu is open */
body.menu-open .site-header:not(.site-header--scrolled) .site-header__logo-img {
    filter: brightness(0) saturate(1) !important;
}

/* Logo normal on desktop when menu is open */
@media (min-width: 768px) {
    body.menu-open .site-header:not(.site-header--scrolled) .site-header__logo-img {
        filter: none !important;
    }
}

/* Navigation links to white when NOT scrolled - desktop only */
@media (min-width: 768px) {
    .site-header:not(.site-header--scrolled) .site-nav__link {
        color: #ffffff !important;
    }

    .site-header:not(.site-header--scrolled) .site-nav__link::after {
        background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%) !important;
    }
}

/* Mobile menu toggle (hamburger) to white when NOT scrolled and menu NOT open */
.site-header:not(.site-header--scrolled) .menu-toggle:not(.menu-toggle--active) .menu-toggle__line {
    background: #ffffff !important;
}

/* "Talk to Us" contact button to white when NOT scrolled AND menu NOT open */
.site-header:not(.site-header--scrolled) .btn--nav {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.site-header:not(.site-header--scrolled) .btn--nav:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Override button colors when menu is open */
body.menu-open .site-header:not(.site-header--scrolled) .btn--nav {
    color: var(--color-primary) !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
    background: transparent !important;
}

body.menu-open .site-header:not(.site-header--scrolled) .btn--nav:hover {
    background: rgba(124, 58, 237, 0.08) !important;
    border-color: var(--color-primary) !important;
}

body.menu-open .btn--nav {
    color: var(--color-primary) !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
    background: transparent !important;
}

body.menu-open .btn--nav:hover {
    background: rgba(124, 58, 237, 0.08) !important;
    border-color: var(--color-primary) !important;
}

/* Social links in header to white when NOT scrolled */
.site-header:not(.site-header--scrolled) .social-links__link {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.site-header:not(.site-header--scrolled) .social-links__link:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* Hero Section */
.docs-hero {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.85) 100%), url('/assets/images/docs-library-hero-brand_0_2025-11-14_07-43-02.jpg');
    background-size: cover;
    background-position: center -300px;
    background-attachment: fixed;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.docs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.docs-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.docs-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--weight-light);
    color: var(--bg-light);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    padding: 0 var(--space-4);
}

.docs-hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Coming Soon Section */
.docs-coming-soon {
    padding: 2rem 0;
    background: var(--bg-light);
}

.coming-soon-card {
    background: transparent;
    border-radius: 16px;
    padding: 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    box-shadow: none;
}

.coming-soon-icon {
    display: none;
}

.coming-soon-title {
    display: none;
}

.coming-soon-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.coming-soon-features {
    display: none;
}

.feature-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: left;
}

.feature-preview svg {
    flex-shrink: 0;
    color: var(--primary);
}

.feature-preview span {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Auth Section */
.docs-auth-section {
    max-width: 1200px;
    margin: 0 auto 6rem;
}

.auth-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1rem;
    padding-top: 2.5rem;
}

.auth-section-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.auth-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.auth-card--highlight {
    background: linear-gradient(135deg, #A9D8F2 0%, #E4B9E4 100%);
    color: #1B1B1B;
    box-shadow: 0 4px 20px rgba(169, 216, 242, 0.2);
    padding-top: 2.5rem;
}

.auth-card--highlight .auth-card-title,
.auth-card--highlight .auth-card-subtitle,
.auth-card--highlight .form-label {
    color: #1B1B1B;
}

.auth-card--highlight .form-input {
    background: white;
    border-color: rgba(0, 0, 0, 0.15);
    color: #1B1B1B;
}

.auth-card--highlight .form-input::placeholder {
    color: rgba(27, 27, 27, 0.5);
}

.auth-card--highlight .form-input:focus {
    background: white;
    border-color: #1B1B1B;
}

.auth-card--highlight .form-footer {
    color: #1B1B1B;
}

.auth-card-badge {
    position: absolute;
    top: 24px;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: #1B1B1B;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.auth-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.auth-card-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.form-input[type="text"],
.form-input[type="email"],
.form-input[type="password"],
select.form-input {
    width: 100%;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    color: #333;
}

select.form-input option {
    color: #333;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-footer {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-footer--small {
    font-size: 0.8rem;
    line-height: 1.5;
}

.form-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.form-link:hover {
    text-decoration: underline;
}

.btn--full {
    width: 100%;
}

/* Resources Section */
.docs-resources {
    max-width: 1200px;
    margin: 0 auto;
}

.resources-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1rem;
}

.resources-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: var(--bg-laptop);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.resource-card .resource-icon {
    color: #A0E1F7;
}

.resource-card .resource-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.resource-card .resource-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .docs-hero {
        padding: 6rem 0 4rem;
    }

    .docs-hero__title {
        font-size: 2.5rem;
    }

    .docs-hero__subtitle {
        font-size: 1.125rem;
    }

    .coming-soon-card {
        padding: 3rem 2rem;
    }

    .coming-soon-title {
        font-size: 2rem;
    }

    .auth-forms {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .docs-hero__title {
        font-size: 2rem;
    }

    .coming-soon-features {
        grid-template-columns: 1fr;
    }

    .auth-section-title,
    .resources-title {
        font-size: 1.75rem;
    }
}
