/*
COMPLETE UPDATED FILE: style.css
*/

/* style.css - Custom styles for Glados Studio website */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
}

/* --- MODIFIED RULE (Height) --- */
/* Increased padding to make the banner taller and prevent logo clipping. */
.main-header {
    background-color: var(--bg-surface);
    padding: 20px 0;
    /* Was var(--space-md) or 16px. This provides more vertical room. */
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* This now overrides the global .container to achieve the 5% side margins */
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none;
    padding: 0 5%;
    margin: 0;
}

/* === Use flexbox for robust vertical alignment === */
.logo-link {
    text-decoration: none;
    display: flex;
    /* Use flexbox for alignment */
    align-items: center;
    /* Vertically center the content */
    height: 100%;
    /* Ensure it fills the available vertical space */
}

.logo-text {
    /* No alignment-specific styles needed here anymore */
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--accent-color);
}

.logo-text img {
    /* MODIFICATION: Reduced max-height to prevent internal SVG clipping */
    max-height: 30px;
    /* Was 34px. This creates visual padding. */
    width: auto;
    display: block;
    /* Good practice for images that are flex items */
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: var(--space-lg);
}

.main-nav a {
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
}

/* --- HIDE ON DESKTOP --- */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--text-primary);
}

/* Hero Section - Aspect ratio adjusted to 24/9 */
.hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #000;
    width: 100%;
    aspect-ratio: 24 / 9;
}

/* Hero Video - Set to cover to fill width */
#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Hero Content - Left margin is now 5% */
.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: left;
    margin: 0 auto 0 5%;
    max-width: 600px;
}

.hero-section h1 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: var(--space-sm);
}

.hero-section .tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-lg);
    background-color: var(--accent-color);
    color: #fff;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-hover);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    border-color: var(--text-secondary);
}


/* Features Section */
.features-section {
    padding: var(--space-xl) 0;
    background-color: var(--bg-surface);
}

.features-section .section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.features-section .card {
    text-align: center;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.features-section .card h3 {
    color: var(--accent-color);
    margin-top: var(--space-sm);
}

.features-section .card .feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: var(--space-sm);
}


/* Download Page Specific */
.download-page-title {
    text-align: center;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.download-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.download-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.download-card .os-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-md);
    color: var(--accent-color);
}

.download-card img.os-icon {
    filter: invert(50%) sepia(88%) saturate(2107%) hue-rotate(347deg) brightness(102%) contrast(101%);
}


.download-card h2 {
    margin-top: 0;
    margin-bottom: var(--space-sm);
}

.download-card .version-info {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.btn-download {
    width: 100%;
    max-width: 250px;
    margin-top: auto;
}


/* Footer */
.main-footer {
    background-color: var(--bg-surface);
    padding: var(--space-lg) 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}


/* DEPRECATED Hero Video Placeholder */
.video-placeholder-wrapper,
.video-placeholder {
    display: none;
}

/* Minimalist Feature Card */
.feature-card-minimal {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.feature-card-minimal h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.feature-card-minimal p {
    color: var(--text-secondary);
}

/* CTA Waitlist Form */
.cta-section {
    padding: var(--space-xl) 0;
    text-align: center;
}

.waitlist-form {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    max-width: 500px;
    margin: 0 auto;
}

.waitlist-form input {
    flex-grow: 1;
    text-align: center;
}

.waitlist-form button {
    white-space: nowrap;
}

/* Recommended Download Card */
.download-card.recommended {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px var(--accent-muted);
    transform: scale(1.02);
}

/* To make the logout button look less like a link */
.nav-button-style {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    cursor: pointer;
    padding: var(--space-sm) 0;
}

.nav-button-style:hover {
    color: var(--accent-color);
}

/* --- Payment/Pricing Page Specific Styles --- */
.pricing-section {
    padding: var(--space-xl) 0;
    text-align: center;
}

.pricing-plan {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: 0 auto var(--space-lg);
    max-width: 450px;
    box-shadow: var(--shadow-md);
}

.pricing-plan h2 {
    color: var(--accent-color);
    margin-bottom: var(--space-sm);
}

.pricing-plan .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.pricing-plan .price-period {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.pricing-plan ul {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-lg);
    text-align: left;
}

.pricing-plan ul li {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
    position: relative;
}

.pricing-plan ul li::before {
    content: '✓';
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.payment-status-message {
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    display: none;
}

.payment-status-message.success {
    background-color: var(--accent-muted);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.payment-status-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

#upgrade-button-pro.disabled {
    background-color: var(--text-tertiary);
    cursor: not-allowed;
}


/* === NEW MOBILE STYLES (768px and below) === */
@media (max-width: 768px) {

    /* --- Mobile Logo Size --- */
    /* Reduced size by another 15% (28px -> 24px) */
    .logo-text img {
        max-height: 24px;
    }

    /* --- Mobile Typography --- */
    .hero-section h1 {
        font-size: 2rem;
        /* Reduced from 2.8rem */
    }

    .hero-section .tagline {
        font-size: 1rem;
        /* Reduced from 1.25rem */
    }

    /* --- Mobile Hero Aspect Ratio --- */
    .hero-section {
        aspect-ratio: 16 / 9;
    }

    /* Center text on mobile */
    .hero-content {
        margin: 0 5%;
        text-align: center;
    }

    /* --- Mobile Navigation Menu --- */
    .main-nav {
        order: 1;
    }

    .mobile-menu-button {
        display: block;
        order: 2;
        z-index: 1001;
    }

    .main-nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-main);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-xl);
        z-index: 1000;
    }

    .main-nav ul.mobile-menu-open {
        display: flex;
    }

    .main-nav ul a {
        font-size: 1.5rem;
    }
}