/* ═══════════════════════════════════════════════════════════════════
   QUESTS SCREEN
   ═══════════════════════════════════════════════════════════════════ */

.quests-screen {
    padding: 1rem;
    padding-bottom: 80px;
}

.quests-screen .screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.quests-screen .screen-header h1 {
    margin: 0;
    font-size: 1.5rem;
    flex: 1;
}

.quests-screen .back-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.quests-screen .back-btn:hover {
    background: var(--color-card-bg);
    border-color: var(--color-purple);
}

/* Season Info */
.season-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-cyan) 100%);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.season-points {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
}

.season-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Quest Tabs */
.quest-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.quest-tab {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
}

.quest-tab:hover {
    background: var(--color-card-bg);
    color: var(--color-text);
}

.quest-tab.active {
    background: var(--color-purple);
    color: white;
}

/* Quest Panels */
.quest-panel {
    display: none;
}

.quest-panel.active {
    display: block;
}

/* Reset Timer */
.quest-reset-timer {
    text-align: center;
    padding: 0.5rem;
    background: var(--color-card-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Quest List */
.quest-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Quest Item */
.quest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--color-card-bg);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    gap: 1rem;
}

.quest-item.completed {
    border-color: var(--color-success);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, var(--color-card-bg) 100%);
}

.quest-item.claimed {
    opacity: 0.7;
}

.quest-info {
    flex: 1;
    min-width: 0;
}

.quest-name {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.quest-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

/* Quest Progress Bar */
.quest-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quest-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--color-bg);
    border-radius: 4px;
    overflow: hidden;
}

.quest-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-purple), var(--color-cyan));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.quest-progress-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    min-width: 50px;
    text-align: right;
}

/* Quest Rewards */
.quest-rewards {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.quest-reward-text {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.reward-sp {
    background: var(--color-purple);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.reward-token {
    background: var(--color-gold);
    color: black;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.reward-title {
    background: var(--color-cyan);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.reward-pack {
    background: var(--color-success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.quest-claim-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
}

.quest-claimed-badge {
    color: var(--color-success);
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════════
   FORGE STARTER CARDS SECTION
   ═══════════════════════════════════════════════════════════════════ */

.forge-achievement-section {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.15) 0%, rgba(100, 100, 200, 0.15) 100%);
    border: 2px solid rgba(156, 39, 176, 0.5);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.forge-achievement-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.forge-achievement-section .forge-icon {
    font-size: 2rem;
    animation: forge-glow 2s ease-in-out infinite;
}

@keyframes forge-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.forge-achievement-section .forge-info {
    flex: 1;
}

.forge-achievement-section .forge-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-purple);
    margin-bottom: 0.25rem;
}

.forge-achievement-section .forge-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.forge-progress-section {
    margin-bottom: 1rem;
}

.forge-achievement-section .forge-progress {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.forge-achievement-section .forge-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-purple), var(--color-success));
    border-radius: 8px;
    transition: width 0.5s ease;
}

.forge-achievement-section .forge-progress-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: right;
}

.forge-cards-info {
    margin-bottom: 1rem;
}

.forge-ready-text {
    font-size: 0.9rem;
    color: var(--color-success);
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.forge-cards-count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.forge-btn {
    margin-top: 0.5rem;
}

/* Achievement Section */
.achievement-section {
    margin-bottom: 1.5rem;
}

.achievement-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}

/* Achievement Item */
.achievement-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--color-card-bg);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.achievement-item.completed {
    border-color: var(--color-gold);
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1) 0%, var(--color-card-bg) 100%);
}

.achievement-icon {
    font-size: 1.5rem;
}

.achievement-info {
    flex: 1;
    min-width: 0;
}

.achievement-name {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.achievement-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.achievement-progress {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievement-rewards {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

/* Free Tokens Info */
.free-tokens-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-gold) 0%, #f39c12 100%);
    border-radius: 12px;
    margin-top: 1rem;
    color: black;
}

.token-icon {
    font-size: 1.5rem;
}

.token-count {
    font-size: 1.5rem;
    font-weight: bold;
}

.token-label {
    font-size: 0.9rem;
}

/* Loading State */
.quest-list .loading {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
}

/* Empty State */
.quest-list .empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .quest-item {
        flex-direction: column;
        align-items: stretch;
    }

    .quest-rewards {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--color-border);
    }

    .achievement-item {
        flex-wrap: wrap;
    }

    .achievement-rewards {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}
