﻿/* ============================================
   QUEST BOARD - RPG Fantasy Theme
   Inspired by Monster Hunter Rise & Genshin Impact
   ============================================ */

/* Google Fonts - Fantasy Typography */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* Parchment & Paper Colors */
    --parchment-light: #F5E6C8;
    --parchment-mid: #E8D4A8;
    --parchment-dark: #D4BC82;
    --parchment-shadow: #C4A862;
    --ink-dark: #2C1810;
    --ink-mid: #4A3728;
    --ink-light: #6B5344;
    /* Accent Colors */
    --gold-bright: #FFD700;
    --gold-mid: #D4AF37;
    --gold-dark: #AA8C2C;
    --ruby-red: #C41E3A;
    --ruby-dark: #8B0000;
    --emerald: #2E8B57;
    --emerald-dark: #1D5A38;
    --sapphire: #2563EB;
    --sapphire-dark: #1D4ED8;
    /* UI Colors */
    --board-bg: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    --panel-bg: rgba(20, 20, 35, 0.95);
    --panel-border: rgba(212, 175, 55, 0.3);
    /* Fantasy Typography */
    --font-display: 'Cinzel', serif;
    --font-body: 'Crimson Text', Georgia, serif;
}

/* ============================================
   PAGE LAYOUT
   ============================================ */
.quest-board-page {
    min-height: 100vh;
    background: var(--board-bg);
    position: relative;
    overflow: hidden;
}

    /* Decorative background pattern */
    .quest-board-page::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(ellipse at 20% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%), url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='%23D4AF37' stroke-width='0.5' opacity='0.05'/%3E%3C/svg%3E");
        pointer-events: none;
        z-index: 0;
    }

/* ============================================
   QUEST BOARD HEADER - Ornate Style
   ============================================ */
.quest-board-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(180deg, rgba(30, 30, 50, 0.98) 0%, rgba(20, 20, 35, 0.95) 100%);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, transparent, var(--gold-mid), var(--gold-bright), var(--gold-mid), transparent) 1;
}

    /* Decorative corner ornaments */
    .quest-board-header::before,
    .quest-board-header::after {
        content: '◆';
        position: absolute;
        bottom: -10px;
        font-size: 1rem;
        color: var(--gold-mid);
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    }

    .quest-board-header::before {
        left: 2rem;
    }

    .quest-board-header::after {
        right: 2rem;
    }

.quest-board-title-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.quest-board-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-mid) 0%, var(--gold-dark) 100%);
    border: 2px solid var(--gold-bright);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

    .quest-board-icon::after {
        content: '';
        position: absolute;
        inset: 3px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 4px;
    }

    .quest-board-icon .mud-icon-root {
        color: var(--ink-dark) !important;
        font-size: 1.75rem !important;
        filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.3));
    }

.quest-board-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--parchment-light);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.3);
    letter-spacing: 0.05em;
}

.quest-board-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(245, 230, 200, 0.7);
    margin-top: 0.25rem;
    font-style: italic;
}

.quest-board-actions {
    display: flex;
    gap: 0.75rem;
}

/* Ornate Buttons */
.quest-action-btn {
    font-family: var(--font-display) !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    position: relative;
}

.quest-action-btn--secondary {
    background: rgba(245, 230, 200, 0.1) !important;
    border: 1px solid var(--gold-mid) !important;
    color: var(--parchment-light) !important;
}

    .quest-action-btn--secondary:hover {
        background: rgba(212, 175, 55, 0.2) !important;
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3) !important;
        transform: translateY(-2px);
    }

.quest-action-btn--primary {
    background: linear-gradient(180deg, var(--gold-mid) 0%, var(--gold-dark) 100%) !important;
    border: 1px solid var(--gold-bright) !important;
    color: var(--ink-dark) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3) !important;
}

    .quest-action-btn--primary:hover {
        background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold-mid) 100%) !important;
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5) !important;
        transform: translateY(-2px);
    }

/* ============================================
   QUEST BOARD PANEL (Main Container)
   ============================================ */
.quest-board-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    padding: 1.5rem 2rem 2rem;
    min-height: calc(100vh - 140px);
}

/* ============================================
   QUEST LIST SECTION (Left Panel)
   ============================================ */
.quest-list-section {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(212, 175, 55, 0.1);
    position: relative;
}

    /* Subtle parchment texture overlay */
    .quest-list-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
        opacity: 0.02;
        pointer-events: none;
        z-index: 0;
    }

/* Stats Bar */
.quest-stats-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.04) 100%);
    border-bottom: 1px solid var(--panel-border);
    position: relative;
    z-index: 2;
}

.quest-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.625rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    min-width: 110px;
    transition: all 0.2s ease;
}

    .quest-stat-item:hover {
        background: rgba(0, 0, 0, 0.4);
        border-color: rgba(212, 175, 55, 0.4);
    }

.quest-stat-item--active {
    border-color: rgba(46, 139, 87, 0.4);
}

.quest-stat-item--urgent {
    border-color: rgba(196, 30, 58, 0.4);
}

.quest-stat-item--conquered {
    border-color: rgba(37, 99, 235, 0.4);
}

.quest-stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.quest-stat-number--active {
    color: var(--emerald);
    text-shadow: 0 0 15px rgba(46, 139, 87, 0.5);
}

.quest-stat-number--urgent {
    color: var(--ruby-red);
    text-shadow: 0 0 15px rgba(196, 30, 58, 0.5);
}

.quest-stat-number--conquered {
    color: var(--sapphire);
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

.quest-stat-label {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(245, 230, 200, 0.6);
    margin-top: 0.25rem;
}

/* Quest Tabs */
.quest-tabs-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.quest-tabs .mud-tabs-toolbar {
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid var(--panel-border) !important;
    min-height: 48px !important;
}

.quest-tabs .mud-tab {
    font-family: var(--font-display) !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: var(--gold-mid) !important;
    transition: all 0.3s ease !important;
    min-width: 150px !important;
}

    .quest-tabs .mud-tab:hover {
        color: var(--gold-bright) !important;
        background: rgba(212, 175, 55, 0.12) !important;
    }

    .quest-tabs .mud-tab.mud-tab-active {
        color: #1a1a2e !important;
        background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold-mid) 100%) !important;
        border-radius: 4px 4px 0 0 !important;
    }

.quest-tabs .mud-tab-slider {
    display: none !important;
}

/* Quest List Container */
.quest-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

    /* Custom Scrollbar */
    .quest-list-container::-webkit-scrollbar {
        width: 8px;
    }

    .quest-list-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }

    .quest-list-container::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--gold-mid), var(--gold-dark));
        border-radius: 4px;
        border: 1px solid rgba(212, 175, 55, 0.3);
    }

        .quest-list-container::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, var(--gold-bright), var(--gold-mid));
        }

/* ============================================
   QUEST CARD - Parchment Style
   ============================================ */
.quest-card {
    position: relative;
    background: linear-gradient(135deg, rgba(245, 230, 200, 0.08) 0%, rgba(232, 212, 168, 0.03) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

    /* Left accent border */
    .quest-card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        transition: all 0.3s ease;
    }

    .quest-card:hover {
        background: linear-gradient(135deg, rgba(245, 230, 200, 0.12) 0%, rgba(232, 212, 168, 0.06) 100%);
        border-color: rgba(212, 175, 55, 0.4);
        transform: translateX(4px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .quest-card.selected {
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.08) 100%);
        border-color: var(--gold-mid);
        box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25), inset 0 0 30px rgba(212, 175, 55, 0.05);
    }

/* Active Quest */
.quest-card--active::before {
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
}

.quest-card--active:hover::before,
.quest-card--active.selected::before {
    box-shadow: 0 0 12px var(--emerald);
}

/* Urgent Quest */
.quest-card--urgent {
    border-color: rgba(196, 30, 58, 0.4);
    animation: urgentPulse 3s ease-in-out infinite;
}

    .quest-card--urgent::before {
        background: var(--ruby-red);
        box-shadow: 0 0 8px var(--ruby-red);
    }

@keyframes urgentPulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(196, 30, 58, 0);
    }

    50% {
        box-shadow: 0 0 20px rgba(196, 30, 58, 0.2);
    }
}

/* Conquered Quest */
.quest-card--conquered::before {
    background: var(--sapphire);
}

.quest-card--conquered {
    opacity: 0.85;
}

/* Quest Card Header */
.quest-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1rem 0.75rem;
}

.quest-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.quest-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
}

    .quest-icon .mud-icon-root {
        font-size: 1.375rem !important;
    }

.quest-icon--active {
    border-color: rgba(46, 139, 87, 0.5);
}

    .quest-icon--active .mud-icon-root {
        color: var(--emerald) !important;
    }

.quest-icon--urgent {
    border-color: rgba(196, 30, 58, 0.5);
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% {
        box-shadow: inset 0 0 10px rgba(196, 30, 58, 0.2);
    }

    50% {
        box-shadow: inset 0 0 15px rgba(196, 30, 58, 0.4);
    }
}

.quest-icon--urgent .mud-icon-root {
    color: var(--ruby-red) !important;
}

.quest-icon--conquered {
    border-color: rgba(37, 99, 235, 0.5);
}

    .quest-icon--conquered .mud-icon-root {
        color: var(--sapphire) !important;
    }

/* Quest Info */
.quest-info {
    flex: 1;
    min-width: 0;
}

.quest-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--parchment-light);
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.quest-giver {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(245, 230, 200, 0.6);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.quest-giver-icon {
    font-size: 0.875rem !important;
    opacity: 0.7;
}

.quest-class-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding: 0.125rem 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(245, 230, 200, 0.5);
}

/* Quest Meta (Status/Deadline) */
.quest-meta {
    flex-shrink: 0;
    text-align: right;
}

.quest-deadline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.quest-deadline-label {
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(245, 230, 200, 0.4);
}

.quest-deadline-value {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--parchment-light);
}

.quest-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: rgba(196, 30, 58, 0.2);
    border: 1px solid rgba(196, 30, 58, 0.4);
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FF6B6B;
}

.quest-status-chip--urgent {
    animation: chipPulse 2s ease-in-out infinite;
}

@keyframes chipPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Quest Card Content */
.quest-card-content {
    padding: 0 1rem 0.75rem;
}

.quest-description {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(245, 230, 200, 0.65);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quest-completion-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.quest-completion-date {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(245, 230, 200, 0.5);
    font-style: italic;
}

/* Quest Card Actions */
.quest-card-actions {
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.quest-accept-btn {
    width: 100%;
    font-family: var(--font-display) !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 0.75rem 1rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

    /* Shine effect on hover */
    .quest-accept-btn::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .quest-accept-btn:hover::after {
        left: 100%;
    }

.quest-accept-btn--active {
    background: linear-gradient(180deg, var(--emerald) 0%, var(--emerald-dark) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(46, 139, 87, 0.4) !important;
}

    .quest-accept-btn--active:hover {
        box-shadow: 0 6px 24px rgba(46, 139, 87, 0.5) !important;
        transform: translateY(-2px);
    }

.quest-accept-btn--urgent {
    background: linear-gradient(180deg, var(--ruby-red) 0%, var(--ruby-dark) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.4) !important;
    animation: urgentBtnPulse 2s ease-in-out infinite;
}

@keyframes urgentBtnPulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(196, 30, 58, 0.4);
    }

    50% {
        box-shadow: 0 4px 24px rgba(196, 30, 58, 0.6);
    }
}

.quest-review-btn {
    width: 100%;
    font-family: var(--font-display) !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 0.75rem 1rem !important;
    background: rgba(37, 99, 235, 0.12) !important;
    border: 1px solid rgba(37, 99, 235, 0.3) !important;
    border-radius: 6px !important;
    color: #60A5FA !important;
    transition: all 0.3s ease !important;
}

    .quest-review-btn:hover {
        background: rgba(37, 99, 235, 0.2) !important;
        border-color: var(--sapphire) !important;
        transform: translateY(-2px);
    }

/* ============================================
   QUEST DETAIL PANEL (Right Side)
   ============================================ */
.quest-detail-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(212, 175, 55, 0.1);
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 180px);
}

    /* Subtle parchment texture overlay */
    .quest-detail-panel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
        opacity: 0.02;
        pointer-events: none;
        z-index: 0;
    }

/* Parchment-style header */
.quest-detail-header {
    position: relative;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(180deg, rgba(245, 230, 200, 0.1) 0%, rgba(245, 230, 200, 0.02) 100%);
    border-bottom: 1px solid var(--panel-border);
    text-align: center;
    z-index: 2;
}

.quest-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, var(--gold-mid), var(--gold-dark));
    border: 1px solid var(--gold-bright);
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-dark);
    margin-bottom: 0.75rem;
}

.quest-detail-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--parchment-light);
    margin: 0 0 0.375rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.quest-detail-giver {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: rgba(245, 230, 200, 0.65);
    font-style: italic;
}

/* Quest Detail Content */
.quest-detail-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    padding-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.quest-detail-section {
    margin-bottom: 1.25rem;
}

    .quest-detail-section:last-child {
        margin-bottom: 0;
    }

.quest-section-title {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-mid);
    margin-bottom: 0.625rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.quest-detail-description {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(245, 230, 200, 0.8);
}

/* Info Grid */
.quest-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.quest-info-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    text-align: center;
}

.quest-info-label {
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(245, 230, 200, 0.45);
    margin-bottom: 0.25rem;
}

.quest-info-value {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--parchment-light);
}

/* Rewards Grid */
.quest-rewards-grid {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quest-reward-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    min-width: 72px;
    transition: all 0.2s ease;
}

    .quest-reward-item:hover {
        background: rgba(212, 175, 55, 0.1);
        border-color: var(--gold-mid);
        transform: translateY(-2px);
    }

.quest-reward-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-mid), var(--gold-dark));
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

    .quest-reward-icon .mud-icon-root {
        color: var(--ink-dark) !important;
        font-size: 1.25rem !important;
    }

.quest-reward-value {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gold-bright);
}

.quest-reward-label {
    font-family: var(--font-display);
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(245, 230, 200, 0.5);
}

/* Score Display */
.quest-score-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
}

.quest-score-circle {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 0.5rem;
}

    .quest-score-circle .mud-progress-circular {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

.quest-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--parchment-light);
    z-index: 1;
    line-height: 1;
}

.quest-score-label {
    font-family: var(--font-display);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(245, 230, 200, 0.5);
}

/* Perfect Score Star */
.quest-perfect-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.quest-perfect-star {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-mid) 100%);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    animation: starGlow 3s ease-in-out infinite;
}

@keyframes starGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.3);
    }
}

.quest-perfect-star .mud-icon-root {
    color: var(--ink-dark) !important;
    font-size: 2rem !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.quest-perfect-label {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-bright);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Quest Detail Actions */
.quest-detail-actions {
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    border-top: 1px solid var(--panel-border);
}

    .quest-detail-actions:empty {
        display: none;
    }

/* Score Badge in Quest List */
.quest-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
}

.quest-score-badge--perfect {
    color: var(--gold-bright);
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.quest-score-badge--good {
    color: var(--emerald);
    background: rgba(46, 139, 87, 0.15);
    border: 1px solid rgba(46, 139, 87, 0.3);
}

.quest-score-badge--okay {
    color: var(--sapphire);
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* Empty Detail State */
.quest-detail-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.quest-detail-empty-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.08);
    border: 2px dashed rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    margin-bottom: 1rem;
}

    .quest-detail-empty-icon .mud-icon-root {
        font-size: 2.5rem !important;
        color: rgba(212, 175, 55, 0.3) !important;
    }

.quest-detail-empty-text {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-style: italic;
    color: rgba(245, 230, 200, 0.45);
}

/* ============================================
   EMPTY STATES
   ============================================ */
.quest-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.quest-empty-icon-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.08);
    border: 2px dashed rgba(212, 175, 55, 0.25);
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.quest-empty-icon {
    font-size: 2.5rem !important;
    color: rgba(212, 175, 55, 0.35) !important;
}

.quest-empty-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--parchment-light);
    margin-bottom: 0.5rem;
}

.quest-empty-message {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: rgba(245, 230, 200, 0.55);
    max-width: 280px;
    line-height: 1.5;
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */
.quest-loading-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1.25rem;
}

.quest-loading-text {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    color: rgba(245, 230, 200, 0.65);
}

.quest-error-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

/* ============================================
   NOT ENROLLED STATE
   ============================================ */
.quest-not-enrolled {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    margin: 2rem;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    text-align: center;
}

.quest-not-enrolled-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.04) 100%);
    border: 2px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

    .quest-not-enrolled-icon .mud-icon-root {
        font-size: 3rem !important;
        color: var(--gold-mid) !important;
    }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1100px) {
    .quest-board-panel {
        grid-template-columns: 1fr;
    }

    .quest-detail-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    .quest-board-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.25rem;
    }

        .quest-board-header::before,
        .quest-board-header::after {
            display: none;
        }

    .quest-board-actions {
        width: 100%;
    }

    .quest-action-btn {
        flex: 1;
    }

    .quest-board-panel {
        padding: 1rem;
    }

    .quest-stats-bar {
        gap: 0.75rem;
        padding: 1rem;
    }

    .quest-stat-item {
        min-width: 90px;
        padding: 0.5rem 1rem;
    }

    .quest-stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quest-board-title {
        font-size: 1.5rem;
    }

    .quest-board-subtitle {
        display: none;
    }

    .quest-stats-bar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .quest-card-header {
        flex-wrap: wrap;
    }

    .quest-meta {
        width: 100%;
        text-align: left;
        margin-top: 0.5rem;
    }
}
