/* Home Page Conversion-Focused Styles */

/* ==========================================
   Hero Sections - Conversion Optimized
   ========================================== */

.hero-director-focused,
.hero-player-focused {
    background: var(--theme-bg-primary);
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-director-focused::before,
.hero-player-focused::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--flipt-primary, var(--theme-primary)) 0%, var(--flipt-secondary, var(--theme-secondary)) 100%);
    opacity: 0.03;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Brand Badge */
.brand-badge {
    display: inline-flex;
    align-items: center;
    background: var(--theme-surface-1);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--theme-shadow);
    border: 1px solid var(--theme-border-color);
}

.flipt-logo {
    height: 2rem;
    width: auto;
}

/* Hero Typography */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--theme-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--theme-text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 90%;
}

/* Value Props (Director-focused) */
.value-props {
    margin-bottom: 3rem;
}

.value-prop {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--theme-surface-1);
    border-radius: 1rem;
    border: 1px solid var(--theme-border-color);
    transition: all 0.3s ease;
}

.value-prop:hover {
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow);
    border-color: var(--theme-accent);
}

.value-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: var(--theme-accent);
    color: var(--theme-bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.value-text h4 {
    color: var(--theme-text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.value-text p {
    color: var(--theme-text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Feature Highlights (Player-focused) */
.feature-highlights {
    margin-bottom: 3rem;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--theme-surface-1);
    border-radius: 0.75rem;
    border: 1px solid var(--theme-border-color);
    transition: all 0.3s ease;
}

.feature-highlight:hover {
    background: var(--theme-surface-2);
    border-color: var(--theme-accent);
}

.feature-highlight .feature-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--theme-accent);
    color: var(--theme-bg-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.feature-highlight .feature-text strong {
    color: var(--theme-text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.feature-highlight .feature-text p {
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* CTA Section */
.cta-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--flipt-primary, var(--theme-primary)) 0%, var(--flipt-secondary, var(--theme-secondary)) 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    justify-content: center;
    /* Enhanced contrast for accessibility */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    color: white;
    text-decoration: none;
    filter: brightness(1.1) contrast(1.05);
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid var(--theme-accent, var(--theme-border-color));
    color: var(--theme-text-primary);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
    /* Enhanced contrast for accessibility */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: var(--theme-surface-2, var(--theme-surface-1));
    border-color: var(--theme-accent);
    color: var(--theme-text-primary);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 2;
    max-width: 100%;
    overflow: hidden;
}

.hero-image-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* Hero Overlays */
.hero-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 1rem;
}

.stat-badge {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.hero-stats-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stats-grid .stat-item {
    text-align: center;
}

.stats-grid .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--flipt-primary, #00a69c);
}

.stats-grid .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Community Proof */
.community-proof {
    background: var(--theme-surface-1);
    padding: 2rem 0;
    border-top: 1px solid var(--theme-border-color);
}

.social-proof {
    text-align: center;
}

.social-proof-text {
    color: var(--theme-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.course-contribution-callout {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--theme-accent);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
}

/* League Benefits Section */
.league-benefits {
    background: var(--theme-bg-primary);
    padding: 5rem 0;
}

.section-title {
    color: var(--theme-text-primary);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--theme-text-secondary);
    font-size: 1.2rem;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-card {
    background: var(--theme-surface-1);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    border: 1px solid var(--theme-border-color);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--theme-shadow);
    border-color: var(--theme-accent);
}

.benefit-card .benefit-icon {
    width: 4rem;
    height: 4rem;
    background: var(--theme-accent);
    color: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.benefit-card h4 {
    color: var(--theme-text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--theme-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Marketing Metrics Widget Integration */
.platform-stats-bar {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--theme-surface-1);
    border-radius: 1rem;
    border: 1px solid var(--theme-border-color);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-director-focused,
    .hero-player-focused {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-title {
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
        max-width: 100%;
    }
    
    .cta-section {
        justify-content: center;
    }
    
    .value-prop,
    .feature-highlight {
        text-align: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-image {
        height: 350px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        min-width: auto;
    }
    
    .cta-section {
        flex-direction: column;
    }
    
    .hero-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        justify-content: center;
    }
    
    .hero-stats-overlay {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: 1rem;
    }
}

/* Dark Mode Enhancements */
[data-bs-theme="dark"] {
    .hero-director-focused::before,
    .hero-player-focused::before {
        opacity: 0.05;
    }
    
    .stat-badge {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .hero-stats-overlay {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    /* Enhanced button contrast for dark mode */
    .btn-hero-primary {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        filter: brightness(1.15) contrast(1.1);
    }
    
    .btn-hero-primary:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
        filter: brightness(1.25) contrast(1.15);
    }
    
    .btn-hero-secondary {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--theme-accent);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .btn-hero-secondary:hover {
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.6s ease-out;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

/* Empty State Styling */
.empty-state-container {
    padding: 4rem 0;
}

.empty-state-content {
    background: var(--theme-surface-1);
    padding: 4rem 3rem;
    border-radius: 1.5rem;
    border: 1px solid var(--theme-border-color);
    box-shadow: var(--theme-shadow);
}

.empty-state-icon {
    position: relative;
    margin-bottom: 2rem;
}

.empty-logo {
    height: 4rem;
    width: auto;
    opacity: 0.6;
}

.add-icon {
    position: absolute;
    bottom: -0.5rem;
    right: 50%;
    transform: translateX(50%);
    color: var(--theme-accent);
    font-size: 2rem;
    background: var(--theme-bg-primary);
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-state-title {
    color: var(--theme-text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.empty-state-description {
    color: var(--theme-text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-cta {
    margin-bottom: 1rem;
}

.cta-subtitle {
    margin-top: 1rem;
    margin-bottom: 0;
}

/* League Card Simplification */
.league-card-description {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--theme-border-color);
}

.description-text {
    font-size: 0.9rem;
    color: var(--theme-text-secondary);
    line-height: 1.4;
    display: block;
}

.league-card-details {
    margin-bottom: 0.75rem;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--theme-text-primary);
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-icon {
    width: 16px;
    color: var(--theme-accent);
    margin-right: 0.625rem;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.distance-badge {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--theme-info);
    color: white;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.format-badge {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--theme-success);
    color: white;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* CTA Container Buttons */
.cta-button {
    position: relative;
    border: none;
    color: white;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    min-width: 250px;
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-flex;
    /* Enhanced contrast */
    filter: contrast(1.1) brightness(1.05);
}

.cta-button:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -3px rgba(0, 0, 0, 0.3);
    filter: contrast(1.15) brightness(1.1);
}

.cta-button-primary {
    background-image: linear-gradient(135deg, var(--league-primary, #4A5568), var(--league-gradient, #2D3748));
}

.cta-button-success {
    background-image: linear-gradient(135deg, #10b981, #059669);
}

.cta-button-secondary {
    background-image: linear-gradient(135deg, #4a5568, #2d3748);
}

.cta-button-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    width: 100%;
}

.cta-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    margin-right: 1rem;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cta-button:hover .cta-button-icon {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.cta-button-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cta-button-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
}

.cta-button-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Dark mode enhancements for CTA buttons */
[data-bs-theme="dark"] {
    .cta-button {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
        filter: contrast(1.15) brightness(1.1);
    }
    
    .cta-button:hover {
        box-shadow: 0 15px 20px -3px rgba(0, 0, 0, 0.5);
        filter: contrast(1.2) brightness(1.15);
    }
    
    .cta-button-icon {
        background-color: rgba(255, 255, 255, 0.25);
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.15);
    }
    
    .cta-button:hover .cta-button-icon {
        background-color: rgba(255, 255, 255, 0.35);
    }
    
    /* League card description dark mode */
    .league-card-description {
        border-bottom-color: var(--theme-border-color);
    }
}

/* League Card Button Styles */
.league-card-btn {
    /* Base button styling */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* Enhanced shadow for depth */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Ensure good contrast baseline */
    min-height: 44px; /* WCAG touch target minimum */
}

.league-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.league-card-btn:focus {
    outline: 2px solid var(--theme-info);
    outline-offset: 2px;
}

.league-card-btn i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Primary button - View League Info */
.league-card-btn-primary {
    background: linear-gradient(135deg, var(--flipt-secondary, var(--theme-info)) 0%, var(--flipt-secondary-hover, #2563eb) 100%);
    color: white;
    /* Enhanced contrast with text shadow */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.league-card-btn-primary:hover {
    background: linear-gradient(135deg, var(--flipt-secondary-hover, #2563eb) 0%, var(--flipt-secondary, var(--theme-info)) 100%);
    color: white;
    filter: brightness(1.1);
}

/* Secondary button - View Bag Tags */
.league-card-btn-secondary {
    background: linear-gradient(135deg, var(--flipt-primary, var(--theme-success)) 0%, var(--flipt-primary-hover, #059669) 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.league-card-btn-secondary:hover {
    background: linear-gradient(135deg, var(--flipt-primary-hover, #059669) 0%, var(--flipt-primary, var(--theme-success)) 100%);
    color: white;
    filter: brightness(1.1);
}

/* Recap button - View Recap/Trailer */
.league-card-btn-recap {
    background: linear-gradient(135deg, var(--flipt-secondary, #6366f1) 0%, var(--flipt-primary, #4f46e5) 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.league-card-btn-recap:hover {
    background: linear-gradient(135deg, var(--flipt-primary, #4f46e5) 0%, var(--flipt-secondary, #4338ca) 100%);
    color: white;
    filter: brightness(1.1);
}

/* Dark mode enhancements for league card buttons */
[data-bs-theme="dark"] {
    .league-card-btn {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .league-card-btn:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    }
    
    .league-card-btn-primary {
        background: linear-gradient(135deg, var(--flipt-secondary, #3b82f6) 0%, var(--flipt-secondary-hover, #2563eb) 100%);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        filter: brightness(1.1) contrast(1.1);
    }
    
    .league-card-btn-primary:hover {
        background: linear-gradient(135deg, var(--flipt-secondary-hover, #2563eb) 0%, var(--flipt-secondary, #1d4ed8) 100%);
        filter: brightness(1.2) contrast(1.15);
    }
    
    .league-card-btn-secondary {
        background: linear-gradient(135deg, var(--flipt-primary, #10b981) 0%, var(--flipt-primary-hover, #059669) 100%);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        filter: brightness(1.1) contrast(1.1);
    }
    
    .league-card-btn-secondary:hover {
        background: linear-gradient(135deg, var(--flipt-primary-hover, #059669) 0%, var(--flipt-primary, #047857) 100%);
        filter: brightness(1.2) contrast(1.15);
    }
    
    .league-card-btn-recap {
        background: linear-gradient(135deg, var(--flipt-secondary, #6366f1) 0%, var(--flipt-primary, #4f46e5) 100%);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        filter: brightness(1.1) contrast(1.1);
    }
    
    .league-card-btn-recap:hover {
        background: linear-gradient(135deg, var(--flipt-primary, #4f46e5) 0%, var(--flipt-secondary, #4338ca) 100%);
        filter: brightness(1.2) contrast(1.15);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .hero-content > *,
    .value-prop,
    .feature-highlight,
    .benefit-card,
    .btn-hero-primary,
    .btn-hero-secondary,
    .league-card-btn {
        animation: none;
        transition: none;
    }
    
    .value-prop:hover,
    .feature-highlight:hover,
    .benefit-card:hover,
    .btn-hero-primary:hover,
    .league-card-btn:hover {
        transform: none;
    }
}