/* ==========================================================================
   MATCHDAY SOCCER COACH - LANDING PAGE STYLES
   ========================================================================== */

:root {
    --color-bg: #0a0a0a;
    --color-surface: rgba(26, 26, 26, 0.7);
    --color-surface-hover: rgba(38, 38, 38, 0.9);
    --color-surface-card: #141414;
    --color-primary: #e61919;
    --color-primary-hover: #ff3333;
    --color-primary-glow: rgba(230, 25, 25, 0.35);
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-hover: rgba(255, 255, 255, 0.25);
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-glass: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    --blur-glass: blur(14px);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    background-image: 
        radial-gradient(circle at 12% 18%, rgba(230, 25, 25, 0.12), transparent 30%),
        radial-gradient(circle at 88% 28%, rgba(230, 25, 25, 0.08), transparent 30%),
        radial-gradient(circle at 50% 85%, rgba(230, 25, 25, 0.06), transparent 35%);
    background-attachment: fixed;
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ==========================================================================
   NAVIGATION BAR (HEADER)
   ========================================================================== */

.landing-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    user-select: none;
}

.logo-red {
    color: var(--color-primary);
}

.logo-pro {
    font-weight: 300;
    color: var(--color-text-muted);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-border-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 18px var(--color-primary-glow);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 6px 24px rgba(230, 25, 25, 0.55);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.9rem 1.9rem;
    font-size: 1.05rem;
    border-radius: 10px;
    font-weight: 700;
}

/* ==========================================================================
   MAIN CONTENT LAYOUT
   ========================================================================== */

.landing-main {
    flex: 1;
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* ==========================================================================
   HERO SECTION (Split Layout: Carousel Left, Copy Right)
   ========================================================================== */

.hero-section {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 480px;
}

/* Carousel Container (Left) */
.hero-carousel-card {
    background: var(--color-surface);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass), 0 0 40px rgba(230, 25, 25, 0.08);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0d0d0d;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.carousel-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.4) 70%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.carousel-slide-tag {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: rgba(230, 25, 25, 0.85);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Carousel Indicators & Controls */
.carousel-nav {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

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

.carousel-dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 12px;
    box-shadow: 0 0 10px var(--color-primary);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    opacity: 0;
}

.hero-carousel-card:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

/* Hero Description (Right) */
.hero-copy-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 0;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(230, 25, 25, 0.12);
    border: 1px solid rgba(230, 25, 25, 0.35);
    color: #ff5555;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    width: fit-content;
    margin-bottom: 1.25rem;
}

.hero-headline {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.hero-feature-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
}

.feature-pill-icon {
    color: var(--color-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-free-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: #4ade80;
    margin-top: 0.75rem;
    font-weight: 500;
}

/* ==========================================================================
   4 VERTICAL FEATURE BOXES (Screenshot 1 Style)
   ========================================================================== */

.features-section {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

/* 4-Column Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Tall Vertical Card */
.feature-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 480px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 25, 25, 0.55);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7), 0 0 25px rgba(230, 25, 25, 0.25);
}

.feature-card-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.feature-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .feature-card-img {
    transform: scale(1.06);
}

#card-tactics .feature-card-img {
    object-position: center center;
}

/* Deep dark gradient overlay at bottom */
.feature-card-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.96) 0%,
        rgba(0, 0, 0, 0.85) 28%,
        rgba(0, 0, 0, 0.45) 60%,
        rgba(0, 0, 0, 0.15) 100%
    );
    pointer-events: none;
}

/* Card Top Tag / Badge */
.feature-card-top-tag {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 3;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
}

/* Bottom Text Content */
.feature-card-content {
    position: relative;
    z-index: 3;
    padding: 1.75rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.feature-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.28;
    letter-spacing: -0.2px;
}

.feature-card-link-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #e0e0e0;
    opacity: 0.8;
    margin-top: 0.25rem;
    transition: all 0.2s ease;
}

.feature-card:hover .feature-card-link-hint {
    opacity: 1;
    color: #ff5555;
    transform: translateX(4px);
}

/* ==========================================================================
   BOTTOM FOOTER
   ========================================================================== */

.landing-footer {
    width: 100%;
    margin-top: auto;
    background: rgba(12, 12, 12, 0.95);
    border-top: 1px solid var(--color-border);
    padding: 3rem 2rem 2.5rem 2rem;
}

.footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

/* Blank / Future App Store Badges Area */
.footer-app-badges-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-height: 48px;
    width: 100%;
}

.footer-divider {
    width: 100%;
    max-width: 600px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

/* ==========================================================================
   AUTH MODALS (Login & Signup)
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(230, 25, 25, 0.15);
    width: 100%;
    max-width: 470px;
    padding: 2.25rem 2rem;
    position: relative;
    transform: scale(0.94) translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-backdrop.open .modal-card {
    transform: scale(1) translateY(0);
}

.modal-card.modal-wide {
    max-width: 580px;
    padding: 1.75rem 2rem;
}

.modal-wide .input-group {
    margin-bottom: 0.85rem;
}

.modal-wide .modal-header {
    margin-bottom: 1.25rem;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.modal-header .logo,
.modal-logo {
    font-size: 1.22rem !important;
    letter-spacing: 0.5px;
    justify-content: center;
    white-space: nowrap;
    margin: 0 auto 0.5rem auto;
    max-width: 100%;
    display: flex;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0.5rem;
    margin-bottom: 0.35rem;
}

.modal-header p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

/* Form Controls inside Modals */
.input-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(230, 25, 25, 0.25);
}

.input-row {
    display: flex;
    gap: 1rem;
}

.input-row .input-group {
    flex: 1;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 2.8rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.password-toggle:hover {
    color: #ffffff;
}

.password-toggle svg {
    pointer-events: none;
}

.auth-error {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: none;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
}

.auth-error.show {
    display: block;
}

.modal-switch {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.modal-switch a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.25rem;
}

.modal-switch a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .feature-card {
        height: 440px;
    }
}

@media (max-width: 960px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-carousel-card {
        aspect-ratio: 16 / 9;
        max-width: 700px;
        margin: 0 auto;
        width: 100%;
    }
    .hero-headline {
        font-size: 2.1rem;
    }
}

@media (max-width: 640px) {
    .landing-main {
        padding: 1.5rem 1rem 3rem 1rem;
        gap: 3rem;
    }
    .header-inner {
        padding: 1rem 1.25rem;
    }
    .logo {
        font-size: 1.15rem;
        gap: 0.25rem;
    }
    .hero-headline {
        font-size: 1.75rem;
    }
    .hero-feature-highlights {
        grid-template-columns: 1fr;
    }
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .feature-card {
        height: 400px;
    }
    .footer-bottom-row {
        flex-direction: column;
        gap: 1rem;
    }
    .input-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .modal-card {
        padding: 1.75rem 1.25rem;
        max-width: 94vw;
    }
    .modal-header .logo,
    .modal-logo {
        font-size: 1.05rem !important;
        letter-spacing: 0px;
    }
}

/* ==========================================================================
   VIEW INTEGRATION WITH APP
   ========================================================================== */
#landing-view {
    display: none;
    width: 100%;
    min-height: 100vh;
    flex-direction: column;
}

#landing-view.active {
    display: flex;
    flex-direction: column;
}

.app-container:not(.active) {
    display: none !important;
}

.app-container.active {
    display: block !important;
}

