/* =====================================================================
   ESAForum — Daily Quests page (desktop polish + mobile-first pass)
   Created by ESAGAMES HOSTING SHIELD SRL
   Supplements quest styles already in vote.css.
   Uses theme vars: --primary, --surface, --border, --radius, etc.
   v4
   ===================================================================== */

/* -----------------------------------------------------------------------
   Quest page wrapper — constrain width on wide screens
   --------------------------------------------------------------------- */
.quest-wrap {
    max-width: 860px;
}

/* -----------------------------------------------------------------------
   Desktop: quest cards are single-column but fill nicely up to max-width.
   --------------------------------------------------------------------- */
@media (min-width: 1024px) {
    .quest-list,
    .quest-guest-preview {
        gap: 16px;
    }

    .quest-card {
        padding: 22px 26px;
        gap: 22px;
        border-radius: var(--radius-lg);
    }

    /* Slightly larger icon on desktop */
    .quest-icon {
        font-size: 38px;
        width: 52px;
    }

    .quest-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    /* Thicker progress bar on desktop */
    .quest-progress-bar {
        height: 10px;
        margin-bottom: 10px;
    }

    .quest-reward {
        font-size: 14px;
    }

    .quest-progress-text {
        font-size: 14px;
    }

    /* Action column: fixed width so claim button doesn't shrink */
    .quest-action {
        min-width: 120px;
    }

    /* Bigger claim button */
    .quest-action .btn-sm {
        padding: 9px 20px;
        font-size: 14px;
        min-height: 38px;
    }

    .quest-claimed-badge {
        font-size: 14px;
    }

    .quest-locked {
        font-size: 14px;
    }

    /* Done card: stronger green glow */
    .quest-card.quest-done {
        box-shadow: 0 4px 20px rgba(46,230,166,.10);
    }

    /* Guest preview cards: same sizing */
    .quest-guest-preview .quest-card {
        padding: 22px 26px;
    }
}

/* -----------------------------------------------------------------------
   Desktop summary strip — shown above the quest list on ≥1024px
   --------------------------------------------------------------------- */
.quest-summary {
    display: none;
}

@media (min-width: 1024px) {
    .quest-summary {
        display: flex;
        gap: 16px;
        margin-bottom: 24px;
    }

    .quest-summary-stat {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px 22px;
        text-align: center;
        flex: 1 1 0;
        position: relative;
        overflow: hidden;
        transition: border-color .18s, transform .18s;
    }

    /* Top gradient accent on each summary stat */
    .quest-summary-stat::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 2px;
        background: var(--grad-primary);
        border-radius: var(--radius) var(--radius) 0 0;
        opacity: .5;
    }
    .quest-summary-stat:hover {
        border-color: rgba(var(--primary-rgb), .3);
        transform: translateY(-1px);
    }

    .quest-summary-val {
        font-size: 26px;
        font-weight: 800;
        color: var(--primary-2);
        line-height: 1;
        font-variant-numeric: tabular-nums;
    }

    .quest-summary-val.gold { color: var(--amber); }
    .quest-summary-val.green { color: var(--green); }

    .quest-summary-label {
        font-size: 11px;
        color: var(--text-mute);
        text-transform: uppercase;
        letter-spacing: .06em;
        margin-top: 6px;
        font-weight: 700;
    }
}

/* -----------------------------------------------------------------------
   Responsive — don't regress mobile (vote.css already covers ≤640px)
   --------------------------------------------------------------------- */
@media (max-width: 640px) {
    .quest-wrap { max-width: none; }
}

/* 390px */
@media (max-width: 390px) {
    /* Summary strip hidden on mobile (handled by show:none above 1024px),
       but reinforce quest-wrap fills full width */
    .quest-wrap { padding: 0; }
}

/* 360px */
@media (max-width: 360px) {
    .quest-wrap { padding: 0; }
}
