/* Landing page specific styles */
.hero-section {
    text-align: center;
    padding: 1.5rem 2rem 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    border-radius: 16px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* League Preview Styles */
.preview-section {
    margin: 4rem 0;
}

.preview-card {
    padding: 3rem;
    text-align: left;
}

.preview-header {
    text-align: center;
    margin-bottom: 3rem;
}

.preview-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.preview-feature {
    height: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.preview-feature:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Premium Showcase Gallery - Flyhyer inspired */
.showcase-gallery {
    max-width: 1200px;
    margin: 4rem auto;
    position: relative;
}

.showcase-main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    aspect-ratio: 16 / 10;
    margin-bottom: 2rem;
}

.showcase-main-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.showcase-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.showcase-image.active {
    opacity: 1;
    pointer-events: auto;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3rem;
}

/* Elegant thumbnail navigation */
.showcase-thumbnails {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 2rem;
}

.showcase-thumb {
    position: relative;
    width: 140px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.showcase-thumb.active::before {
    opacity: 0;
}

.showcase-thumb.active {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.showcase-thumb:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.showcase-thumb:hover::before {
    opacity: 0.3;
}

.showcase-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation dots */
.showcase-indicators {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.showcase-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-indicator.active {
    width: 24px;
    border-radius: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .showcase-main {
        aspect-ratio: 16 / 11;
    }

    .showcase-image img {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .showcase-main {
        aspect-ratio: 4 / 3;
        border-radius: 16px;
    }

    .showcase-image img {
        padding: 1.5rem;
    }

    .showcase-thumb {
        width: 100px;
        height: 65px;
    }

    .showcase-thumbnails {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .showcase-main {
        border-radius: 12px;
    }

    .showcase-image img {
        padding: 1rem;
    }

    .showcase-thumb {
        width: 70px;
        height: 45px;
        border-radius: 8px;
    }

    .showcase-thumbnails {
        gap: 0.5rem;
        padding: 0 1rem;
    }
}

.preview-cta {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-cta h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-card {
    position: relative;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.feature-description:last-child {
    margin-bottom: 0;
}

.pricing-section {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
    padding: 3rem;
}

.pricing-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.price-display {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 1.5rem 0;
}

.price-features {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.error-alert {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-left: 4px solid #ef4444;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    color: #ef4444;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .preview-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 1rem;
    }

    .preview-card {
        padding: 2rem 1.5rem;
    }

    .preview-cta .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero {
        width: 100%;
        max-width: 300px;
    }
}

/* Forfeit Wheel Showcase Styles */
.forfeit-wheel-showcase {
    margin: 4rem 0;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.feature-price {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.wooden-spoon-emoji {
    font-size: 2rem;
    animation: wobble 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes wobble {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.wheel-demo-container {
    text-align: center;
    position: relative;
}

.wheel-pointer-demo {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: #667eea;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: pointerBounce 2s ease-in-out infinite;
}

@keyframes pointerBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(5px); }
}

#demoForfeitWheel {
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    transition: transform 0.1s ease-out;
}

.btn-gradient-demo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-gradient-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #7c8cf2 0%, #8659b5 100%);
}

.btn-gradient-demo:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.forfeit-features {
    padding: 1rem;
}

.forfeit-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.forfeit-feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
}

.forfeit-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.forfeit-feature-item h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.forfeit-feature-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.demo-result {
    max-width: 400px;
    margin: 0 auto;
}

/* Confetti for demo */
.demo-confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 9999;
    pointer-events: none;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .forfeit-wheel-showcase {
        margin: 2rem 0;
    }

    .forfeit-wheel-showcase .glass-card {
        padding: 1.5rem !important;
    }

    .wheel-demo-container {
        margin-bottom: 2rem;
    }

    .forfeit-feature-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .forfeit-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .forfeit-feature-item h4 {
        font-size: 1rem;
    }

    .forfeit-feature-item p {
        font-size: 0.9rem;
    }
}

/* ============================================================================
   Skeleton UI for Progressive Loading
   ============================================================================ */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text.large {
    height: 1.5rem;
}

.skeleton-text.small {
    height: 0.75rem;
}

.skeleton-box {
    height: 100px;
}

.skeleton-box.tall {
    height: 200px;
}

.skeleton-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 1rem;
}

/* Tab loading states */
.tab-content-wrapper {
    min-height: 400px;
    position: relative;
}

.tab-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(4px);
    z-index: 10;
    border-radius: 16px;
}

.tab-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spinner-rotate 1s linear infinite;
}

@keyframes spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

.tab-loading-text {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Progress indicator */
.tab-progress-indicator {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.tab-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tab-progress-dot.loaded {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.6);
}

.tab-progress-dot.loading {
    background: rgba(102, 126, 234, 0.5);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Hide content until loaded */
.tab-content.not-loaded {
    display: none;
}

.tab-content.loaded {
    animation: fadeIn 0.4s ease-in;
}

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