/* ============================================
   SIM TECH TRACKER - Landing Page Styles
   ============================================ */

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.nav-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px !important;
    height: 100%;
    flex-shrink: 0;
}

.nav-brand .logo {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

/* Nav Links Refinement */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: var(--space-8);
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-accent-blue);
}

/* Auth Buttons Container - Show on desktop, hide on mobile (will show in menu) */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-buttons .btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

#auth-buttons {
    display: none;
    gap: var(--space-5);
}

#auth-buttons.show {
    display: flex;
}

#auth-buttons .btn {
    border-radius: var(--radius-full);
}

/* User Dropdown */
/* User Dropdown */
.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
    /* Removed background and border completely as requested */
    background: transparent;
    border: none;
}

.user-dropdown-toggle:hover {
    background-color: transparent;
    cursor: default;
    /* Should it be default or pointer? User said eliminate color change. Pointer is still good for dropdown. */
    cursor: pointer;
}

.user-text-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.user-name-display {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    /* Ensure ~16+ characters are visible before truncating */
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-email-display {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.user-avatar-small {
    width: 50px;
    /* Standardized size to 50px */
    height: 50px;
    /* Standardized size to 50px */
    border-radius: 50%;
    object-fit: cover;
    /* Dashboard has no border or specific border? Check dashboard.css line 64. 
       It has box-shadow but no border. */
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
    margin-left: var(--space-2);
}

.user-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(94, 179, 228, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 200, 69, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: url('data:image/svg+xml,<svg width="600" height="600" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(94,179,228,0.1)" stroke-width="1"/></pattern></defs><rect width="600" height="600" fill="url(%23grid)"/><circle cx="300" cy="300" r="250" fill="none" stroke="rgba(94,179,228,0.15)" stroke-width="2"/><circle cx="300" cy="300" r="200" fill="none" stroke="rgba(94,179,228,0.15)" stroke-width="2"/><circle cx="300" cy="300" r="150" fill="none" stroke="rgba(94,179,228,0.15)" stroke-width="2"/><line x1="300" y1="50" x2="300" y2="550" stroke="rgba(94,179,228,0.15)" stroke-width="2"/><line x1="50" y1="300" x2="550" y2="300" stroke="rgba(94,179,228,0.15)" stroke-width="2"/></svg>');
    opacity: 0.3;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    margin-bottom: var(--space-6);
    filter: drop-shadow(0 0 30px rgba(94, 179, 228, 0.3));
}

.hero-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--color-text-primary), var(--color-accent-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--space-6);
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.app-preview {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Features Section */
.features-section {
    background: var(--color-bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(94, 179, 228, 0.1), rgba(255, 200, 69, 0.1));
    border-radius: var(--radius-lg);
    color: var(--color-accent-blue);
}

/* Download Section */
.download-section {
    background: var(--color-bg-primary);
}

/* Screenshot Carousel (Modern Style) */
.screenshots-carousel {
    position: relative;
    max-width: 1000px;
    /* Wider container */
    margin: 0 auto var(--space-12);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
}

.carousel-container {
    position: relative;
    width: 100%;
    padding-top: 500px;
    /* Fixed height for consistent banner feel */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Modern Background Handling */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Gradient Overlay for Text Readability */
.carousel-slide::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 15, 30, 0.9) 0%, rgba(10, 15, 30, 0.6) 40%, transparent 100%);
    z-index: 1;
}

/* Text Content - Positioned Left */
.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    top: 0;
    width: 100%;
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
    max-width: 600px;
}

.carousel-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);

    /* Reveal Animation */
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: 0.1s;
}

.carousel-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-6);
    line-height: 1.6;
    max-width: 90%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);

    /* Reveal Animation */
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: 0.3s;
}

/* Animate text when active */
.carousel-slide.active .carousel-title,
.carousel-slide.active .carousel-subtitle {
    transform: translateY(0);
    opacity: 1;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    bottom: var(--space-8);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: var(--color-accent-blue);
    border-color: var(--color-accent-blue);
    transform: scale(1.1);
}

/* Positioning buttons next to dots */
.carousel-prev {
    right: 80px;
    bottom: var(--space-8);
    left: auto;
    /* Override default */
    top: auto;
    /* Override default */
    transform: none;
    /* Override translateY */
}

.carousel-next {
    right: var(--space-8);
    bottom: var(--space-8);
    left: auto;
    top: auto;
    transform: none;
}

.carousel-btn:hover {
    transform: scale(1.1);
    /* Re-apply hover scale */
}

/* Dots - Bottom Center (Aligned with buttons) */
.carousel-dots {
    position: absolute;
    bottom: 35px;
    /* Align with button centers */
    right: 140px;
    /* Start to left of buttons */
    left: auto;
    transform: none;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-accent-blue);
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(94, 179, 228, 0.5);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.download-cards {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.download-card {
    text-align: center;
    padding: var(--space-8);
}

.download-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-yellow);
}

.download-card h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.download-card p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

.download-notice {
    text-align: center;
    margin-bottom: var(--space-6);
}

.version-info {
    text-align: center;
    color: var(--color-text-muted);
}

/* Support Section */
.support-section {
    background: var(--color-bg-secondary);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.support-card {
    text-align: center;
    padding: var(--space-8);
    transition: all var(--transition-base);
    cursor: pointer;
}

.support-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.support-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-yellow);
}

.support-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.support-message {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-6);
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

/* Footer */
.footer {
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-12) 0 var(--space-6);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-12);
    margin-bottom: var(--space-8);
}

.footer-brand .footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--space-4);
}

.footer-brand p {
    color: var(--color-text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.footer-column h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    color: var(--color-text-primary);
}

.footer-column a {
    display: block;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-accent-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.footer-bottom p {
    margin-bottom: var(--space-2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg-card);
        flex-direction: column;
        padding: var(--space-6);
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        transition: all var(--transition-base);
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    /* Hide auth buttons from main nav on mobile */
    .nav-menu>.auth-buttons {
        display: none;
    }

    /* Show auth buttons inside nav-links dropdown on mobile */
    .nav-links .auth-buttons.show-auth {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 1rem;
        margin-top: 1rem;
        border-top: 1px solid var(--color-border);
    }

    .nav-links .auth-buttons .btn-sm {
        width: 100%;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        font-weight: 600;
        text-align: center;
        border-radius: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .nav-links .auth-buttons .btn-sm:last-child {
        margin-bottom: 0;
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: var(--text-2xl);
    }

    .carousel-prev {
        left: var(--space-2);
    }

    .carousel-next {
        right: var(--space-2);
    }
}

/* Compatibility Badge */
.compatibility-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
    padding: var(--space-3) var(--space-5);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.compatibility-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.compatibility-badge svg {
    flex-shrink: 0;
    color: var(--color-accent-blue);
}

.compatibility-badge .msfs-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1);
}