/* Homepage Tech Aesthetic
 * Supports both light and dark modes
 * Uses CSS variables for theming
 */

/* ==========================================================================
   Page Theme - Light Mode (Default)
   ========================================================================== */

.main-content--tech {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.main-content--tech .container {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Section Base Styles
   ========================================================================== */

.section--tech {
    position: relative;
    padding: 5rem 2rem;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* Remove border from first section to prevent line at top of page */
.section--tech:first-of-type,
.main-content--tech > .section--tech:first-child {
    border-top: none;
}

.section--tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Alternating section backgrounds */
.section--tech:nth-child(even) {
    background-color: var(--bg-primary);
}

/* Section headers */
.section-header--tech {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title--tech {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-subtitle--tech {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   How It Works - Step Cards
   ========================================================================== */

.how-it-works--tech {
    background-color: var(--bg-tertiary);
    padding: 5rem 2rem;
}

.how-it-works--tech .section-header--tech {
    margin-bottom: 3rem;
}

/* Steps container */
.steps-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Step card */
.step-card {
    flex: 1;
    max-width: 280px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-4px);
}

.step-card__number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--cta-primary);
    background: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 20px;
    letter-spacing: 0.1em;
}

.step-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.step-card__icon i {
    font-size: 1.5rem;
    color: var(--cta-primary);
}

.step-card__title {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-card__description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Step connector arrow */
.step-connector {
    display: flex;
    align-items: center;
    color: rgba(16, 185, 129, 0.4);
    font-size: 1.25rem;
    padding: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .step-card {
        max-width: 100%;
        width: 100%;
    }

    .step-connector {
        transform: rotate(90deg);
        padding: 0;
    }
}

/* ==========================================================================
   Wins Ticker - Infinite Scroll
   ========================================================================== */

.wins-ticker {
    background: var(--bg-secondary);
    padding: 3rem 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(16, 185, 129, 0.15);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

/* Fade edges */
.wins-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        var(--bg-primary) 0%,
        transparent 10%,
        transparent 90%,
        var(--bg-primary) 100%
    );
    pointer-events: none;
    z-index: 3;
}

.wins-ticker__header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 4;
}

.wins-ticker__title {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cta-primary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.wins-ticker__title::before,
.wins-ticker__title::after {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cta-primary));
}

.wins-ticker__title::after {
    background: linear-gradient(90deg, var(--cta-primary), transparent);
}

/* Ticker track */
.wins-ticker__track {
    display: flex;
    width: max-content;
    animation: tickerScroll 60s linear infinite;
}

.wins-ticker__track:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Individual win card in ticker */
.ticker-win {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    margin: 0 0.5rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    cursor: default;
}

.ticker-win:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    transform: scale(1.02);
}

.ticker-win__result {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--cta-primary);
    color: #000;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.7rem;
}

.ticker-win__teams {
    color: var(--text-primary);
    white-space: nowrap;
}

.ticker-win__vs {
    color: var(--text-muted);
    margin: 0 0.25rem;
}

.ticker-win__pick {
    color: var(--cta-primary);
    font-weight: 600;
}

.ticker-win__spread {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.ticker-win__score {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* View all link */
.wins-ticker__cta {
    text-align: center;
    margin-top: 1.5rem;
    position: relative;
    z-index: 4;
}

.wins-ticker__link {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.wins-ticker__link:hover {
    color: var(--cta-primary);
}

.wins-ticker__link i {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.wins-ticker__link:hover i {
    transform: translateX(3px);
}

/* ==========================================================================
   Featured Picks - Glassmorphism
   ========================================================================== */

.featured-picks--tech {
    background-color: var(--bg-tertiary);
    padding: 5rem 2rem;
}

.featured-picks--tech .section-header--tech {
    margin-bottom: 2.5rem;
}

/* Override pick preview cards for theme */
.featured-picks--tech .pick-preview-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.featured-picks--tech .pick-preview-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.1);
}

/* ==========================================================================
   Pricing - Terminal Style
   ========================================================================== */

.pricing--tech {
    background-color: var(--bg-secondary);
    padding: 5rem 2rem;
}

.pricing--tech .pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pricing--tech .pricing-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-5px);
}

.pricing--tech .pricing-card.featured {
    border-color: var(--cta-primary);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.pricing--tech .pricing-header h3 {
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--text-primary);
}

.pricing--tech .price {
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--cta-primary);
}

/* Dark mode price visibility fix */
[data-theme="dark"] .pricing--tech .price,
[data-theme="dark"] .pricing--tech .pricing-header .price {
    color: #ffffff !important;
}

/* Dark mode pricing card text */
[data-theme="dark"] .pricing--tech .pricing-header h3 {
    color: #ffffff;
}

.pricing--tech .features-list li {
    color: var(--text-secondary);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
}

.pricing--tech .features-list li::before {
    content: '>';
    color: var(--cta-primary);
    margin-right: 0.5rem;
}

.pricing--tech .featured-badge {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta--tech {
    background: var(--bg-tertiary);
    padding: 5rem 2rem;
    text-align: center;
}

.cta--tech h2 {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.cta--tech .btn-primary {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.cta--tech .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: ctaShine 3s infinite;
}

@keyframes ctaShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    /* Zero out Bootstrap container padding */
    .main-content--tech .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .section--tech {
        padding: 3rem 0.75rem;
    }

    .terminal-window {
        margin: 0 -0.75rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .terminal-body {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .wins-ticker {
        padding: 2rem 0;
    }

    .ticker-win {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    /* Slow down ticker on mobile - fewer items visible means it feels faster */
    .wins-ticker__track {
        animation: tickerScroll 45s linear infinite;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .wins-ticker__track {
        animation: none;
    }

    .terminal-line {
        opacity: 1;
        transform: none;
        animation: none;
    }

    @keyframes ctaShine {
        0%, 100% { left: -100%; }
    }
}
