/* Auto-extracted from page-daily-quest.php (P1-5) */
/* =====================================================
   Daily Quests Page — New Design
   ===================================================== */

.abq-daily-quests {
    padding: 32px 24px 48px;
    background: #f8fafc;
    min-height: auto;
}

.abq-daily-inner {
    max-width: var(--abq-content-width);
    margin: 0 auto;
    min-height: auto;
}

/* ---- Page Header ---- */
.abq-daily-header {
    margin-bottom: 24px;
    animation: abq-fade-in-up 0.5s ease both;
}

.abq-daily-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--abq-font-heading, 'Nunito', system-ui, sans-serif);
    font-size: 2rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0 0 6px;
    line-height: 1.2;
}

.abq-title-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.abq-daily-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* ---- Streak Banner ---- */
.abq-streak-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.15);
    animation: abq-fade-in-up 0.5s 0.1s ease both;
}

.abq-streak-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.abq-streak-flame {
    font-size: 2.4rem;
    line-height: 1;
}

.abq-streak-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.abq-streak-text strong {
    font-size: 1.15rem;
    font-weight: 900;
    color: #b45309;
}

.abq-streak-text span {
    font-size: 0.9rem;
    color: #d97706;
    font-weight: 600;
}

.abq-streak-stars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.abq-streak-star {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #f59e0b;
}

.abq-streak-star.is-filled {
    background: #f59e0b;
    box-shadow: inset 0 0 0 3px #fff;
}

.abq-streak-star.is-empty {
    background: #fff;
}

/* ---- Quest Grid ---- */
.abq-daily-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .abq-daily-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .abq-daily-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Quest Card ---- */
.abq-daily-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    animation: abq-fade-in-up 0.5s ease both;
}

.abq-daily-card:nth-child(1) { animation-delay: 0.08s; }
.abq-daily-card:nth-child(2) { animation-delay: 0.16s; }
.abq-daily-card:nth-child(3) { animation-delay: 0.24s; }
.abq-daily-card:nth-child(4) { animation-delay: 0.32s; }
.abq-daily-card:nth-child(5) { animation-delay: 0.40s; }
.abq-daily-card:nth-child(6) { animation-delay: 0.48s; }

.abq-daily-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.abq-daily-card.is-today {
    border-color: #fbbf24;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.12);
}

.abq-daily-card.is-today:hover {
    box-shadow: 0 12px 36px rgba(251, 191, 36, 0.18);
}

.abq-daily-card.is-locked {
    opacity: 0.65;
    pointer-events: none;
}

.abq-daily-card.is-done {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}

.abq-card-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    border: 1px solid;
    line-height: 1;
}

/* ---- Card Top ---- */
.abq-card-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.abq-card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.abq-daily-card:hover .abq-card-icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.abq-card-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.abq-card-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0 0 5px;
    line-height: 1.25;
}

.abq-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 10px;
    line-height: 1.4;
}

.abq-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
}

.abq-meta-difficulty,
.abq-meta-duration {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ---- Card Bottom ---- */
.abq-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 2px;
}

.abq-card-xp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
    font-weight: 900;
    color: #f59e0b;
}

.abq-card-xp svg {
    color: #f59e0b;
}

.abq-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 900;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1;
}

.abq-card-btn--today {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(34, 197, 94, 0.3);
}

.abq-card-btn--today:hover {
    transform: scale(1.06);
    box-shadow: 0 5px 18px rgba(34, 197, 94, 0.4);
}

.abq-card-btn--start {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.abq-card-btn--start:hover {
    background: #dbeafe;
    transform: scale(1.04);
}

.abq-card-btn--locked,
.abq-card-btn--done {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.abq-card-btn--done {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
}

/* ---- Keyframes ---- */
@keyframes abq-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
