/* Home page styles - welcome screen, stats, rules, news */

/* Start/welcome screen */
.start-screen-content {
    text-align: center;
    padding: 2rem 1.5rem;
}

.welcome-logo {
    max-width: 100%;
    width: 350px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

.welcome-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bitcoin-orange);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: bold;
}

/* Home stats section for returning users */
.home-stats-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.stats-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-align: center;
    letter-spacing: 0.01em;
}

.welcome-message {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 0.01em;
}

.signup-invite {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0 0 1.25rem 0;
    pointer-events: auto;
}

.signup-invite a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    pointer-events: auto;
}

.signup-invite a:hover {
    text-decoration: underline;
}

.home-stats-section .welcome-message + .stats-grid {
    margin-top: 1.25rem;
}

.home-stats-section .stat-card {
    pointer-events: auto;
}

/* Rules section */
.rules-section {
    text-align: left;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.rules-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-align: center;
    letter-spacing: 0.01em;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(247, 147, 26, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(247, 147, 26, 0.15);
}

.rule-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.125rem;
}

.rule-text {
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.6;
    font-weight: 500;
}

.rules-cta {
    text-align: center;
    margin-top: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.rules-cta a {
    color: var(--bitcoin-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.rules-cta a:hover {
    color: #ff8c00;
    text-decoration: underline;
}

/* News section */
.news-section {
    margin-top: 2rem;
    text-align: left;
    width: 100%;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.news-item {
    padding: 0.75rem 0;
}

.news-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
}

.news-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #c5c8d8;
    margin: 0;
}

.news-content a {
    color: var(--bitcoin-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.news-content a:hover {
    color: #ffad42;
    text-decoration: underline;
}

.news-see-all {
    display: inline-block;
    margin-top: 1rem;
    color: var(--bitcoin-orange);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-see-all:hover {
    color: #ffad42;
    text-decoration: underline;
}

.news-page {
    max-width: 600px;
    margin: 0 auto;
}

.news-empty {
    color: var(--text-secondary);
    font-style: italic;
}

/* Mode selection */
.mode-selection {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1.25rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1;
    max-width: 180px;
}

.mode-card:hover {
    transform: translateY(-2px);
}

.mode-card.challenge {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.15) 0%, rgba(247, 147, 26, 0.05) 100%);
    border: 2px solid rgba(247, 147, 26, 0.4);
}

.mode-card.challenge:hover {
    border-color: var(--bitcoin-orange);
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.25);
}

.mode-card.practice {
    background: linear-gradient(135deg, rgba(99, 179, 237, 0.15) 0%, rgba(99, 179, 237, 0.05) 100%);
    border: 2px solid rgba(99, 179, 237, 0.4);
}

.mode-card.practice:hover {
    border-color: #63b3ed;
    box-shadow: 0 4px 20px rgba(99, 179, 237, 0.25);
}

.mode-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.mode-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.mode-card.challenge .mode-title {
    color: var(--bitcoin-orange);
}

.mode-card.practice .mode-title {
    color: #63b3ed;
}

.mode-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

/* Hall of Fame link */
.hall-of-fame-link {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
}

.hall-of-fame-link a {
    color: var(--bitcoin-orange);
    text-decoration: none;
    font-weight: 600;
}

.hall-of-fame-link a:hover {
    text-decoration: underline;
}

/* ========== MOBILE ========== */
@media (max-width: 400px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card--primary,
    .stat-card--progress {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .welcome-title {
        font-size: 2rem;
    }

    .welcome-icon {
        font-size: 4rem;
    }

    .rules-section {
        padding: 1rem;
    }

    .rule-item {
        padding: 0.625rem;
    }

    .home-stats-section {
        padding: 1rem;
    }

    .mode-selection {
        flex-direction: column;
        align-items: center;
    }

    .mode-card {
        max-width: 100%;
        width: 100%;
        flex-direction: row;
        padding: 1rem 1.25rem;
        gap: 1rem;
    }

    .mode-icon {
        font-size: 1.75rem;
        margin-bottom: 0;
    }

    .mode-card-text {
        text-align: left;
    }

    .mode-desc {
        text-align: left;
    }
}
