/* ============================================
   FanBooya! How to Earn Page Styles
   ============================================ */

/* Earn Hero */
.earn-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 5% 80px;
    text-align: center;
    position: relative;
}

.earn-hero .hero-content {
    max-width: 800px;
}

.earn-hero .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.earn-hero .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Earn Sections */
.earn-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Earn Grid */
.earn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* Earn Cards */
.earn-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.earn-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.earn-card.featured {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
    border-color: rgba(249, 115, 22, 0.3);
}

.earn-card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.earn-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.earn-card h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 12px;
}

.earn-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 20px;
}

.earn-card-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.detail-value {
    color: #f97316;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 12px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Charity Section */
.charity-section {
    padding: 60px 5%;
}

.charity-card {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.charity-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.charity-card h2 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
}

.charity-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 20px;
}

.charity-tag {
    display: inline-block;
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* CTA Section */
.earn-cta {
    padding: 100px 5%;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(249, 115, 22, 0.05) 100%);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Premium Features Section Background */
.premium-features {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, transparent 100%);
    border-radius: 30px;
    margin: 40px 5%;
    padding: 80px 5%;
}

/* Engagement Activities Background */
.engagement-activities {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    margin: 40px 5%;
}

/* Hero App Preview */
.hero-app-preview {
    margin-top: 40px;
}

.app-preview-img {
    max-width: 280px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Ways to Earn Visual Section */
.ways-to-earn-visual {
    padding: 40px 5%;
}

.ways-image-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ways-to-earn-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Earn Card with Image */
.earn-card.has-image {
    padding-top: 0;
    overflow: hidden;
}

.earn-card-image {
    margin: -30px -30px 20px -30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
}

.earn-card-image img {
    max-width: 150px;
    height: auto;
    border-radius: 10px;
}

/* Feature Card with Image */
.feature-card.has-image {
    padding-top: 20px;
}

.feature-card-image {
    text-align: center;
    margin-bottom: 15px;
}

.feature-card-image img {
    max-width: 100px;
    height: auto;
}

/* Leaderboard Section */
.leaderboard-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(249, 115, 22, 0.1));
    border-radius: 30px;
    margin: 40px 5%;
    padding: 60px 5%;
}

.leaderboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.leaderboard-text h2 {
    color: white;
    margin-bottom: 15px;
}

.leaderboard-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.leaderboard-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leaderboard-benefits li {
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.leaderboard-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f97316;
    font-weight: bold;
}

.leaderboard-image {
    text-align: center;
}

.leaderboard-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Light Mode Adjustments */
[data-theme="light"] .leaderboard-text h2 {
    color: #1a1a2e;
}

[data-theme="light"] .leaderboard-text p {
    color: #64748b;
}

[data-theme="light"] .leaderboard-benefits li {
    color: #374151;
}

[data-theme="light"] .leaderboard-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(249, 115, 22, 0.08));
}

[data-theme="light"] .ways-image-wrapper {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .earn-card-image {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .earn-card,
[data-theme="light"] .feature-card {
    background: white;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .earn-card h3,
[data-theme="light"] .feature-card h3,
[data-theme="light"] .charity-card h2,
[data-theme="light"] .cta-content h2 {
    color: #1a1a2e;
}

[data-theme="light"] .earn-card p,
[data-theme="light"] .feature-card p,
[data-theme="light"] .charity-card p,
[data-theme="light"] .cta-content p {
    color: #64748b;
}

[data-theme="light"] .earn-hero .hero-subtitle {
    color: #64748b;
}

[data-theme="light"] .detail-label {
    color: #94a3b8;
}

[data-theme="light"] .earn-card-details {
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .earn-card.featured {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
}

[data-theme="light"] .charity-card {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(168, 85, 247, 0.1));
}

[data-theme="light"] .premium-features {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, transparent 100%);
}

[data-theme="light"] .engagement-activities {
    background: rgba(0, 0, 0, 0.02);
}

/* Responsive */
@media (max-width: 768px) {
    .earn-hero {
        padding: 120px 5% 60px;
        min-height: 50vh;
    }

    .earn-section {
        padding: 60px 5%;
    }

    .earn-grid {
        grid-template-columns: 1fr;
    }

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

    .charity-card {
        padding: 30px 20px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

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

    .premium-features,
    .engagement-activities,
    .leaderboard-section {
        margin: 20px 2%;
        padding: 40px 4%;
    }

    .leaderboard-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .leaderboard-benefits {
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-app-preview {
        margin-top: 30px;
    }

    .app-preview-img {
        max-width: 200px;
    }
}
