/* =========================================
   Grundee Landing Page Styles
   Merged from landing_player.html & landing_coach.html
   ========================================= */

/* --- Visual Base & Layout --- */

.section-spacer {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.bg-gradient-soft {
    /* Player version (Green Tint) - Priority */
    background: linear-gradient(180deg, #e1f8c7ff 0%, #ffffff 100%);
}

.hover-up {
    transition: transform 0.2s;
}

.hover-up:hover {
    transform: translateY(-3px);
}

/* --- Wave Dividers (Player Version - 40px) --- */
/* --- Wave Dividers --- */
.section-relative {
    position: relative;
    overflow: hidden;
}

.wave-divider {
    position: absolute;
    width: 100%;
    height: 60px;
    /* Increased default height for a better curve */
    left: 0;
    line-height: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    /* Ensure it doesn't block clicks */
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 100%;
}

.wave-top {
    top: -1px;
}

.wave-bottom {
    bottom: -1px;
    transform: rotate(180deg);
}

.fill-white {
    fill: #ffffff !important;
}

.fill-light {
    fill: #f8f9fa !important;
}

.fill-dark {
    fill: #212529 !important;
}

.fill-gray-100 {
    fill: #f3f4f6 !important;
}

.fill-primary {
    fill: var(--bs-primary) !important;
}

.fill-secondary {
    fill: var(--bs-secondary) !important;
}

.fill-grundee {
    fill: #54A300 !important;
}

.fill-danger {
    fill: var(--bs-danger) !important;
}

.fill-success {
    fill: var(--bs-success) !important;
}

.fill-warning {
    fill: var(--bs-warning) !important;
}

.fill-info {
    fill: var(--bs-info) !important;
}

.fill-primary-subtle {
    fill: var(--bs-primary-bg-subtle) !important;
}

.fill-grundee-subtle {
    fill: #e9f5db !important;
}

.fill-dark-subtle {
    fill: rgba(33, 37, 41, 0.1) !important;
}

/* Subtle Brand Waves */
.wave-layer-1 {
    transform-origin: center bottom;
    transform: scaleX(1.1);
}

.wave-layer-2 {
    transform-origin: center bottom;
    transform: scaleX(1.1) rotate(1deg);
}

.wave-layer-3 {
    transform: scaleX(1.1);
}


/* --- Hero Section: App Showcase (From Player) --- */

.app-showcase {
    position: relative;
    perspective: 1500px;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
}

.app-device {
    background: #ffffff;
    width: 320px;
    border-radius: 46px;
    border: 10px solid #212529;
    overflow: hidden;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 2px #4a4a4a,
        inset 0 0 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    transform: translateX(40px) rotateY(-15deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.app-device::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.app-device:hover {
    transform: translateX(40px) rotateY(10deg) rotateX(0deg);
}

.app-header {
    background: #fff;
    padding: 1.5rem 1.25rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.calendar-strip {
    display: flex;
    align-items: center;
    padding: 1rem 1rem;
    border-bottom: 1px solid #f8f9fa;
    background: white;
    transition: background 0.2s;
}

.calendar-strip:hover {
    background: #fdfdfd;
}

.time-col {
    width: 45px;
    text-align: center;
    font-weight: 700;
    color: #6c757d;
    font-size: 0.8rem;
}

.event-col {
    flex: 1;
    padding-left: 0.75rem;
}

.team-badge {
    font-size: 0.6rem;
    padding: 0.25em 0.6em;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.team-a {
    background-color: #e9f5db;
    color: #54A300;
}

.team-b {
    background-color: #e1f0ff;
    color: #0056b3;
}

/* Floating Cards (Hero) */
.static-float-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 20;
    animation: float-vertical 4s ease-in-out infinite;
}

@keyframes float-vertical {
    0% {
        transform: translateY(0px);
    }

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

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

/* Responsiveness for App Showcase */
@media (min-width: 992px) {
    .card-payment {
        right: -50px;
        bottom: 100px;
        width: 250px;
        transform: translateX(0);
    }

    .card-notif {
        right: -30px;
        top: 120px;
        min-width: 220px;
    }
}

@media (max-width: 991px) {
    .app-showcase {
        height: 500px;
        transform: scale(0.85);
    }

    .app-device {
        transform: translateX(0) rotateY(0deg);
        width: 300px;
    }

    .app-device:hover {
        transform: translateX(0) rotateY(0deg);
    }

    .card-notif {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 240px;
        z-index: 30;
    }

    .card-payment {
        bottom: 0px;
        right: -10px;
        width: 220px;
        transform: scale(0.9);
        z-index: 30;
    }
}

@media (max-width: 576px) {
    .app-showcase {
        height: 450px;
        transform: scale(0.75);
        margin-left: -20px;
        margin-right: -20px;
    }

    .card-payment {
        right: -20px;
    }
}


/* --- Features Section (Player Style) --- */

.feature-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 24px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.08);
}

.feature-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.feature-card:hover .feature-icon-box {
    transform: scale(1.1);
}

.feature-card:hover i {
    animation: icon-pop 0.4s ease-out forwards;
}

@keyframes icon-pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


/* --- Pricing Section (From Coach) --- */

.pricing-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
    border-color: var(--grundee-green);
}

.pricing-header {
    position: relative;
    overflow: hidden;
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--grundee-green);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-checkbox:checked {
    background-color: var(--grundee-green);
    border-color: var(--grundee-green);
}


/* --- Reviews / Marquee (From Coach) --- */

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 1rem 0;
}

.marquee-container:first-of-type {
    margin-bottom: 2rem;
}

.marquee-track {
    display: inline-flex;
    gap: 2rem;
    padding-left: 1rem;
    animation-duration: var(--marquee-duration, 100s);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.marquee-track-right {
    animation-name: scroll-right;
}

.marquee-track-left {
    animation-name: scroll-left;
}

.review-card {
    width: 350px;
    white-space: normal;
    flex-shrink: 0;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}


/* --- Coach Hero Deck Animation --- */

/* --- Coach Hero Deck Animation (5 Cards) --- */

.hero-card-deck {
    position: relative;
    width: 340px;
    margin: 50px auto 0;
}

.deck-card {
    position: absolute;
    width: 340px;
    height: 240px;
    left: 0;
    top: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    background: white;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: stack-cycle-5 20s infinite;
    /* 5 cards x 4s = 20s cycle */
}

/* Desktop sizing: Bigger cards as requested */
@media (min-width: 992px) {
    .hero-card-deck {
        width: 420px;
        height: 400px;
        /* Taller container to avoid cut-off */
    }

    .deck-card {
        width: 420px;
        height: 280px;
    }
}

/* Staggered Delays for 5 cards (4s intervals) */
.deck-card.card-1 {
    animation-delay: 0s;
    z-index: 5;
}

.deck-card.card-2 {
    animation-delay: -4s;
    z-index: 4;
}

.deck-card.card-3 {
    animation-delay: -8s;
    z-index: 3;
}

.deck-card.card-4 {
    animation-delay: -12s;
    z-index: 2;
}

.deck-card.card-5 {
    animation-delay: -16s;
    z-index: 1;
}

/* 
   Cycle 5 Steps (20s total):
   0-4s (0-20%): Front (Active)
   4-5s (20-25%): Discard (Slide Up/Out) -> Reset
   5-8s (25-40%): Queue 4 (Bottom)
   8-12s (40-60%): Queue 3
   12-16s (60-80%): Queue 2
   16-20s (80-100%): Queue 1 (Directly behind)
*/
@keyframes stack-cycle-5 {

    /* PHASE 1: FRONT (0% - 18%) -> Active Reading Time */
    0%,
    18% {
        transform: translateY(0px) scale(1.05);
        opacity: 1;
        z-index: 10;
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    }

    /* TRANSITION: DISCARD (18% - 22%) */
    22% {
        transform: translateY(-60px) translateX(20px) scale(1.1) rotate(3deg);
        opacity: 0;
        z-index: 10;
    }

    /* PHASE 2: RESET TO BOTTOM (22% - 23%) */
    23% {
        transform: translateY(60px) scale(0.85);
        opacity: 0;
        z-index: 1;
    }

    /* PHASE 3: QUEUE 4 (Bottom) (25% - 38%) */
    25%,
    38% {
        transform: translateY(50px) scale(0.88);
        opacity: 1;
        /* Visible in background */
        z-index: 1;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    /* PHASE 4: QUEUE 3 (40% - 58%) */
    40%,
    58% {
        transform: translateY(40px) scale(0.92);
        opacity: 1;
        z-index: 2;
    }

    /* PHASE 5: QUEUE 2 (60% - 78%) */
    60%,
    78% {
        transform: translateY(30px) scale(0.96);
        opacity: 1;
        z-index: 3;
    }

    /* PHASE 6: QUEUE 1 (Up Next) (80% - 98%) */
    80%,
    98% {
        transform: translateY(15px) scale(1.0);
        opacity: 1;
        z-index: 4;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    /* Loop back to Front */
    100% {
        transform: translateY(0px) scale(1.05);
        opacity: 1;
        z-index: 10;
    }
}

/* --- Premium Footer Styles --- */
.footer-section {
    padding: 3rem 1rem;
    background-color: #f9fafb;
}

.footer-heading {
    text-transform: uppercase;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1.25rem;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-link:hover {
    color: var(--grundee-green);
    transform: translateX(4px);
}

.social-icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #6b7280;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    font-size: 1.1rem;
}

.social-icon-box:hover {
    background-color: var(--grundee-green);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 4px 12px rgba(84, 163, 0, 0.25);
}

/* Newsletter Input */
.newsletter-input {
    padding-block: 0.75rem;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.newsletter-input:focus {
    box-shadow: 0 0 0 4px rgba(84, 163, 0, 0.15);
    background-color: white;
}

.newsletter-btn {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.newsletter-btn:hover {
    transform: scale(1.1);
}

/* Social Icon Link (Legacy Helper if needed) */
.social-icon-link {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon-link:hover {
    transform: translateY(-3px);
    color: var(--grundee-green) !important;
}

/* --- Hub Specific Styles --- */

.hero-hub {
    padding: 8rem 0 10rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.hub-card {
    border-radius: 2.5rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
    z-index: 2;
}

.hub-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 2.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.hub-card:hover {
    transform: translateY(-15px) scale(1.02);
}

.hub-card:hover::before {
    opacity: 1;
}

.hub-card .card-body {
    padding: 3.5rem 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hub-icon {
    width: 80px;
    height: 80px;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease;
}

.hub-card:hover .hub-icon {
    transform: rotate(-5deg) scale(1.1);
}

.pricing-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.bg-player {
    background-color: #e9f5db;
    color: #54A300;
}

.bg-captain {
    background-color: #e1f0ff;
    color: #0056b3;
}

.bg-coach {
    background-color: #fef4e5;
    color: #f39c12;
}

.badge-player-promo {
    background: #54A300;
    color: #fff;
}

/* Feature List in Cards */
.card-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.card-feature-list li {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.card-feature-list li i {
    width: 20px;
    margin-right: 10px;
    font-size: 0.85rem;
}

/* Blog Styles */
.blog-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0 2rem;
    scrollbar-width: thin;
    scrollbar-color: #54A300 #f8f9fa;
}

.blog-card {
    min-width: 300px;
    max-width: 350px;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
    .blog-card {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: none;
    }
}



/* --- Refined Trust Indicator --- */

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
}

.trust-badge .avatar-stack {
    display: flex;
    align-items: center;
}

.trust-badge .avatar-stack img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-right: -12px;
    transition: transform 0.2s ease;
    object-fit: cover;
}

.trust-badge .avatar-stack img:hover {
    transform: translateY(-2px);
    z-index: 10;
}

.trust-badge .trust-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.trust-badge .trust-stars-mini {
    color: #ffc107;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.trust-badge .trust-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #212529;
}

.trust-badge .trust-text span {
    color: #6c757d;
    font-weight: 500;
}