/**
 * TacticTrain Landing Page Styles
 */

/* CSS Variables */
:root {
    --primary: #0F172A;
    --accent: #10B981;
    --bg-soft: #F8FAFC;
}

/* Base overrides for landing */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--primary);
    background-color: var(--bg-soft);
}

.brand-font {
    font-family: 'Archivo Black', sans-serif;
    letter-spacing: -0.03em;
}

/* Patterns & Gradients */
.hero-pattern {
    background-color: #ffffff;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 32px 32px;
}

.gradient-text {
    background: linear-gradient(to right, #10B981, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-gradient {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

/* Bento Cards - Simplified */
.bento-card {
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

@media (min-width: 1024px) {
    .bento-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 1024px) {
    .bento-card {
        cursor: default;
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: transform 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Premium Cards */
.premium-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.card-highlight {
    border: 2px solid #10B981;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.15);
    position: relative;
}

/* Animations */
.play-button-pulse {
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Chart Animation */
.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 3s ease-in-out forwards;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

/* Hide Scrollbar */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile Bento Grid */
.mobile-carousel-container {
    position: relative;
}

/* Scroll indicators (dots) */
.scroll-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.scroll-dot:hover {
    background: #94a3b8;
}

.scroll-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #10b981;
}

/* Audience-specific dot colors */
#features .scroll-dot.active {
    background: #10b981;
}

/* emerald - Trainer */
#vereine-features .scroll-dot.active {
    background: #14b8a6;
}

/* teal - Verein */
#spieler-features .scroll-dot.active {
    background: #22c55e;
}

/* green - Spieler */

/* Better mobile card heights */
@media (max-width: 640px) {
    .bento-card {
        min-height: auto;
    }

    .snap-center.shrink-0 {
        min-height: 380px;
    }
}

/* Alpine cloak */
[x-cloak] {
    display: none !important;
}

/* View Transitions */
@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.3s;
    animation-timing-function: ease-out;
}

::view-transition-old(root) {
    animation-name: fade-out;
}

::view-transition-new(root) {
    animation-name: fade-in;
}

@keyframes fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fallback Animation */
.page-transition-enter {
    animation: pageEnter 0.3s ease-out forwards;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
