/* ==========================================================================
   Myth War II Online - Quest Help Stylesheet (Dark Fantasy MMORPG Theme)
   ========================================================================== */

:root {
    --mw-gold: #fff4c4;
    --mw-orange: #d4af37;
    --mw-border: rgba(142, 108, 74, 0.45);
    --mw-bg: #0a0907;
    --mw-panel: rgba(18, 16, 13, 0.95);
    --mw-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    --mw-text: #e4dfd5;
    --mw-muted: #a19e95;
    --mw-line: rgba(142, 108, 74, 0.2);
}

body {
    background-color: var(--mw-bg);
    color: var(--mw-text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* Page Background Setup */
.quest-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    background: url('../img/maps/Map007_Tiles/File0008.jpg') center center / cover no-repeat;
    filter: brightness(0.28) saturate(0.4);
}

.quest-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 0%, rgba(212, 175, 55, 0.05), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(142, 108, 74, 0.04), transparent 45%),
        linear-gradient(180deg, rgba(10, 9, 7, 0.85) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.page-content {
    position: relative;
    z-index: 1;
}

/* Section Title Plate */
.section-title {
    color: var(--mw-gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 4px #000;
}

.section-divider {
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--mw-orange), var(--mw-gold), var(--mw-orange), transparent);
    margin: 12px auto 40px;
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Buttons */
.btn-gold {
    background: linear-gradient(180deg, #5c432d 0%, #3a2717 100%);
    border: 1px solid var(--mw-orange);
    color: var(--mw-gold);
    font-family: 'Marcellus', serif;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    padding: 10px 20px;
}

.btn-gold:hover {
    color: var(--mw-gold);
    border-color: var(--mw-gold);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 12px rgba(212, 175, 55, 0.25);
    transform: translateY(-1px);
}

.btn-gold:active {
    transform: translateY(1px);
}

/* Search & Filter Bar */
.filter-bar {
    background: var(--mw-panel);
    border: 2px solid var(--mw-border);
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 30px;
    box-shadow: var(--mw-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.filter-bar label {
    color: var(--mw-gold);
    font-family: 'Marcellus', serif;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: inline-block;
}

.filter-bar input, .filter-bar select {
    background: rgba(10, 9, 7, 0.8) !important;
    border: 2px solid var(--mw-border) !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.filter-bar input:focus, .filter-bar select:focus {
    border-color: var(--mw-orange) !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.filter-bar input::placeholder {
    color: var(--mw-muted);
}

.filter-bar select option {
    background: #0a0907;
    color: #fff;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.summary-card {
    background: linear-gradient(145deg, rgba(40, 29, 19, 0.4), rgba(22, 18, 14, 0.95));
    border: 2px solid var(--mw-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--mw-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-align: center;
}

.summary-label {
    color: var(--mw-muted);
    font-family: 'Marcellus', serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 6px;
}

.summary-value {
    color: var(--mw-gold);
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 4px #000, 0 0 10px rgba(212, 175, 55, 0.15);
}

/* Reborn Quest Route */
.reborn-route {
    margin: 0 0 40px;
}

.reborn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.reborn-card {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.08), rgba(22, 18, 14, 0.95));
    border: 2px solid var(--mw-border);
    border-radius: 8px;
    padding: 22px;
    box-shadow: var(--mw-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reborn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--mw-orange);
}

.reborn-card:hover {
    border-color: var(--mw-orange);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.15);
}

.reborn-step {
    color: var(--mw-orange);
    font-family: 'Marcellus', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reborn-title {
    color: var(--mw-gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 7px 0 10px;
    text-shadow: 0 1px 2px #000;
}

.reborn-line {
    color: var(--mw-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.reborn-line strong {
    color: var(--mw-gold);
}

.reborn-note {
    color: var(--mw-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(142, 108, 74, 0.15);
}

.reborn-link {
    color: var(--mw-gold);
    text-decoration: none;
    font-weight: bold;
}

.reborn-link:hover {
    color: var(--mw-orange);
    text-decoration: underline;
}

/* Featured Events & Activities */
.event-section {
    margin: 0 0 40px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.event-card {
    background: linear-gradient(145deg, rgba(40, 29, 19, 0.4), rgba(22, 18, 14, 0.95));
    border: 2px solid var(--mw-border);
    border-radius: 8px;
    padding: 22px;
    box-shadow: var(--mw-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.event-card:hover {
    border-color: var(--mw-orange);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.15);
}

.event-title {
    color: var(--mw-gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 10px;
    text-shadow: 0 1px 2px #000;
}

.event-summary {
    color: var(--mw-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.event-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 4px;
    background: rgba(142, 108, 74, 0.15);
    border: 1px solid var(--mw-border);
    color: var(--mw-gold);
    font-family: 'Marcellus', serif;
    font-size: 0.72rem;
    font-weight: 600;
}

.event-links {
    color: var(--mw-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    border-top: 1px solid rgba(142, 108, 74, 0.15);
    padding-top: 10px;
    margin-top: 10px;
}

.event-links a {
    color: var(--mw-gold);
    text-decoration: none;
    font-weight: bold;
}

.event-links a:hover {
    color: var(--mw-orange);
    text-decoration: underline;
}

/* Spring Event Section */
.spring-section {
    margin: 0 0 40px;
}

.spring-banner {
    background: radial-gradient(circle at 50% 0%, rgba(76, 175, 80, 0.12), transparent 45%), linear-gradient(145deg, rgba(20, 35, 20, 0.6), rgba(10, 9, 7, 0.95));
    border: 2px solid rgba(142, 108, 74, 0.4);
    border-top: 2px solid rgba(76, 175, 80, 0.5);
    border-radius: 8px;
    padding: 26px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: var(--mw-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.spring-banner-title {
    color: #a5d6a7;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.35rem;
    margin: 0 0 6px;
    text-shadow: 0 2px 4px #000, 0 0 15px rgba(76, 175, 80, 0.2);
}

.spring-banner-sub {
    color: var(--mw-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    margin: 0;
}

.spring-totals {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
}

.spring-total-pill {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.25);
    color: #e8f5e9;
    padding: 7px 14px;
    border-radius: 4px;
    font-family: 'Marcellus', serif;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.spring-round {
    background: linear-gradient(145deg, rgba(40, 29, 19, 0.3), rgba(22, 18, 14, 0.95));
    border: 2px solid var(--mw-border);
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--mw-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.spring-round-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(142, 108, 74, 0.15);
    padding-bottom: 12px;
}

.spring-round-num {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #a5d6a7;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: 'Marcellus', serif;
    font-size: 0.72rem;
    font-weight: bold;
    text-transform: uppercase;
}

.spring-round-title {
    color: var(--mw-gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px #000;
}

.spring-round-desc {
    color: var(--mw-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.spring-round-reward {
    color: #a5d6a7;
    font-family: 'Marcellus', serif;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.spring-stage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.spring-stage {
    background: rgba(10, 9, 7, 0.6);
    border: 1px solid var(--mw-border);
    border-radius: 6px;
    padding: 14px;
}

.spring-stage-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.spring-stage-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(142, 108, 74, 0.15);
    border: 1px solid var(--mw-border);
    color: var(--mw-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: bold;
}

.spring-stage-name {
    color: #fff;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.88rem;
}

.spring-stage-detail {
    color: var(--mw-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
}

.spring-stage-detail strong {
    color: var(--mw-gold);
}

.spring-boss-badge {
    display: inline-block;
    background: rgba(180, 0, 255, 0.12);
    border: 1px solid rgba(180, 0, 255, 0.25);
    color: #d1c4e9;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Marcellus', serif;
    font-size: 0.68rem;
    font-weight: 600;
    margin-left: auto;
}

/* Quest Cards */
.quest-card {
    background: linear-gradient(145deg, rgba(40, 29, 19, 0.4), rgba(22, 18, 14, 0.95));
    border: 2px solid var(--mw-border);
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--mw-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.quest-card:hover {
    border-color: var(--mw-orange);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.15);
}

.quest-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(142, 108, 74, 0.15);
    padding-bottom: 10px;
}

.quest-name {
    color: var(--mw-gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0;
    text-shadow: 0 1px 2px #000;
}

.quest-level {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(142, 108, 74, 0.1);
    border: 1px solid var(--mw-border);
    color: var(--mw-gold);
    padding: 5px 11px;
    border-radius: 4px;
    font-family: 'Marcellus', serif;
    font-size: 0.72rem;
    font-weight: bold;
    white-space: nowrap;
}

.quest-desc {
    color: var(--mw-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.quest-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.quest-npc-block, .quest-map-block {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 9, 7, 0.6);
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid var(--mw-border);
}

.quest-npc-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.7));
    border-radius: 6px;
    background: rgba(142, 108, 74, 0.05);
    border: 1px solid var(--mw-border);
    padding: 4px;
}

.quest-npc-name, .quest-map-name {
    color: #fff;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.85rem;
}

.quest-npc-role, .quest-map-label {
    color: var(--mw-orange);
    font-family: 'Marcellus', serif;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.quest-map-thumb {
    width: 66px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--mw-border);
    filter: brightness(0.85);
}

.quest-badge {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 4px;
    font-family: 'Marcellus', serif;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid currentColor;
}

.badge-safe { background: rgba(40, 200, 80, 0.1); border-color: rgba(40, 200, 80, 0.3) !important; color: #52d677; }
.badge-moderate { background: rgba(220, 180, 40, 0.1); border-color: rgba(220, 180, 40, 0.3) !important; color: #ecd04c; }
.badge-dangerous { background: rgba(255, 140, 0, 0.1); border-color: rgba(255, 140, 0, 0.3) !important; color: #ff9b33; }
.badge-veryhigh { background: rgba(255, 60, 60, 0.1); border-color: rgba(255, 60, 60, 0.3) !important; color: #ff6868; }
.badge-extreme { background: rgba(180, 0, 255, 0.1); border-color: rgba(180, 0, 255, 0.3) !important; color: #cc54ff; }

.quest-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.quest-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(142, 108, 74, 0.08);
    border: 1px solid rgba(142, 108, 74, 0.2);
    color: var(--mw-gold);
    padding: 5px 11px;
    border-radius: 4px;
    font-family: 'Marcellus', serif;
    font-size: 0.72rem;
    font-weight: 600;
}

.quest-stages {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(142, 108, 74, 0.15);
}

.quest-stage {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.84rem;
    color: var(--mw-text);
    line-height: 1.5;
}

.quest-stage-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(180deg, #5c432d 0%, #3a2717 100%);
    border: 1px solid var(--mw-orange);
    color: var(--mw-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: bold;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quest-count {
    color: var(--mw-gold);
    font-weight: bold;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--mw-muted);
}

.no-results i {
    margin-bottom: 16px;
}

/* Page Header */
.page-hero {
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12), transparent 45%),
        linear-gradient(180deg, rgba(22, 18, 14, 0.95) 0%, rgba(10, 9, 7, 0.8) 100%);
    padding: 130px 0 50px;
    text-align: center;
    border-bottom: 2px solid var(--mw-border);
    margin-bottom: 30px;
    box-shadow: var(--mw-shadow);
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: auto 10% 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mw-orange), var(--mw-gold), var(--mw-orange), transparent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.page-hero h1 {
    color: var(--mw-gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 2.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px #000, 0 0 15px rgba(212, 175, 55, 0.2);
}

.page-hero p {
    color: var(--mw-muted);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    max-width: 740px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Footer Styling */
footer {
    background: transparent;
    padding: 40px 0;
    text-align: center;
    color: var(--mw-muted);
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(142, 108, 74, 0.15);
    margin-top: 40px;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .page-hero h1 {
        font-size: 2rem;
    }
}
