/**
 * Quest Guide Styles
 * Single-quest detail view with step-by-step walkthrough
 */

/* === QUEST HEADER === */
.quest-header {
    border: 1px solid var(--ansi-bright-black);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.quest-title {
    font-size: var(--font-size-xl);
    color: var(--ansi-bright-white);
    font-weight: bold;
    margin: 0 0 var(--spacing-xs) 0;
}

.quest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
}

/* === QUEST INFO GRID === */
.quest-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md) var(--spacing-lg);
    border: 1px solid var(--ansi-bright-black);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Card-style stat: value prominent on top, label below */
.quest-info .stat-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quest-info .stat-card.full-width {
    grid-column: 1 / -1;
}

.quest-info .stat-card .stat-value {
    color: var(--ansi-bright-white);
    font-size: var(--font-size-md);
    font-weight: bold;
    line-height: 1.3;
}

.quest-info .stat-card .stat-label {
    /* Per COLOR_STANDARD: labels use --ansi-white (#AAAAAA), NOT --ansi-bright-black (#555555) */
    color: var(--ansi-white);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Legacy horizontal stat-row (kept for compatibility) */
.quest-info .stat-row {
    display: flex;
    gap: var(--spacing-xs);
    align-items: baseline;
}

.quest-info .stat-row.full-width {
    grid-column: 1 / -1;
}

.quest-info .stat-row .stat-label {
    color: var(--ansi-white);
    white-space: nowrap;
}

.quest-info .stat-value {
    color: var(--ansi-bright-cyan);
}

/* === QUEST STEPS === */
.quest-steps {
    border: 1px solid var(--ansi-bright-black);
    margin-bottom: var(--spacing-md);
}

.quest-steps-header {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--ansi-bright-black);
    color: var(--ansi-bright-yellow);
    font-size: var(--font-size-md);
    font-weight: bold;
}

.quest-step {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid rgba(85, 85, 85, 0.3);
    transition: background 0.1s;
}

.quest-step:last-child {
    border-bottom: none;
}

.quest-step:hover {
    background: rgba(255, 255, 255, 0.02);
}

.step-number {
    color: var(--ansi-bright-yellow);
    font-weight: bold;
    font-size: var(--font-size-md);
    text-align: center;
    padding-top: 2px;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step-action {
    color: var(--ansi-bright-white);
    line-height: 1.5;
}

.step-action .cmd {
    color: var(--ansi-bright-green);
    font-weight: bold;
}

.step-detail {
    color: var(--ansi-white);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.step-requirement {
    /* Soft yellow for conditional/requirement notes */
    color: var(--ansi-yellow);
    font-size: var(--font-size-sm);
    font-style: italic;
}

/* === QUEST REWARDS === */
.quest-rewards {
    border: 1px solid var(--ansi-bright-black);
    margin-bottom: var(--spacing-md);
}

.quest-rewards-header {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--ansi-bright-black);
    color: var(--ansi-bright-green);
    font-size: var(--font-size-md);
    font-weight: bold;
}

.quest-rewards-list {
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.reward-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.reward-item::before {
    content: '>';
    color: var(--ansi-bright-green);
    font-weight: bold;
}

/* === QUEST NAVIGATION (quest list sidebar) === */
.quest-nav {
    border: 1px solid var(--ansi-bright-black);
    margin-bottom: var(--spacing-md);
}

.quest-nav-header {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--ansi-bright-black);
    color: var(--ansi-bright-cyan);
    font-size: var(--font-size-md);
    font-weight: bold;
}

.quest-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quest-nav-item {
    border-bottom: 1px solid rgba(85, 85, 85, 0.3);
}

.quest-nav-item:last-child {
    border-bottom: none;
}

.quest-nav-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-xs) var(--spacing-md);
    color: var(--ansi-bright-cyan);
    text-decoration: none;
    transition: background 0.1s;
}

.quest-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ansi-bright-white);
}

.quest-nav-link.active {
    background: rgba(85, 255, 255, 0.08);
    border-left: 3px solid var(--ansi-bright-cyan);
}

.quest-nav-level {
    /* Per COLOR_STANDARD: use --ansi-white for readable secondary text */
    color: var(--ansi-white);
    font-size: var(--font-size-sm);
}

/* === QUEST LAYOUT === */
.quest-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-md);
    align-items: start;
}

@media (max-width: 768px) {
    .quest-layout {
        grid-template-columns: 1fr;
    }
    
    .quest-nav {
        order: 2;
    }
}

/* === QUEST CATEGORY TABS === */
.quest-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--ansi-bright-black);
}

.quest-tab {
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(0, 170, 170, 0.2);
    border: 1px solid var(--ansi-cyan);
    border-bottom: none;
    color: var(--ansi-bright-cyan);
    font-family: inherit;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.15s;
}

.quest-tab:hover {
    background: rgba(0, 170, 170, 0.3);
    border-color: var(--ansi-bright-cyan);
    color: var(--ansi-bright-white);
}

.quest-tab.active {
    background: rgba(170, 170, 0, 0.2);
    border-color: var(--ansi-bright-yellow);
    color: var(--ansi-bright-yellow);
}

/* === NOTES/TIPS === */
.quest-notes {
    border: 1px solid var(--ansi-bright-black);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: rgba(255, 255, 85, 0.03);
}

.quest-notes-header {
    color: var(--ansi-bright-yellow);
    font-weight: bold;
    margin-bottom: var(--spacing-xs);
}

.quest-notes p {
    color: var(--ansi-white);
    margin: 0 0 var(--spacing-xs) 0;
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.quest-notes p:last-child {
    margin-bottom: 0;
}

.quest-notes ul {
    margin: 0 0 var(--spacing-xs) 0;
    padding-left: 1.25rem;
    list-style: none;
}

.quest-notes li {
    color: var(--ansi-white);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    margin-bottom: 2px;
}

.quest-notes li strong {
    color: var(--ansi-bright-yellow);
}

/* === QUEST TEXT UTILITIES === */
.quest-guide-page .cmd {
    color: var(--ansi-bright-green);
    font-weight: bold;
}

/* Directional step-by-step navigation instructions */
.quest-directions {
    display: block;
    font-family: monospace;
    color: var(--ansi-bright-cyan);
    background: rgba(85, 255, 255, 0.05);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-left: 2px solid var(--ansi-cyan);
    line-height: 1.6;
}

.quest-guide-page .text-xp {
    color: var(--ansi-bright-yellow);
}

.quest-guide-page .text-ability {
    color: var(--ansi-bright-cyan);
}

/* === TAB CONTENT PANELS === */
.quest-tab-content {
    display: none;
}

.quest-tab-content.active {
    display: block;
}

/* === QUEST DETAIL PANELS (within sidebar navigation) === */
.quest-detail {
    display: none;
}

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

/* === SIDEBAR PLACEHOLDER TEXT === */
.quest-nav-placeholder {
    display: block;
    padding: var(--spacing-xs) var(--spacing-md);
    color: var(--ansi-bright-black);
    font-style: italic;
}

/* === DETAIL TABLE STYLING FOR QUEST GUIDE === */
.quest-guide-page .detail-table {
    width: 100%;
    margin: 0;
}

.quest-guide-page .detail-table thead th {
    padding: var(--spacing-xs) var(--spacing-sm);
    text-align: left;
    color: var(--ansi-bright-yellow);
    border-bottom: 1px solid var(--ansi-bright-black);
}

.quest-guide-page .detail-table tbody td {
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--ansi-bright-cyan);
}

.quest-guide-page .detail-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.quest-guide-page .quest-rewards .detail-table {
    margin-top: var(--spacing-xs);
}

/* Table footnote text */
.quest-guide-page .table-note {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    margin-left: var(--spacing-md);
    margin-right: var(--spacing-md);
    /* Per COLOR_STANDARD: use --ansi-white for secondary text, not --ansi-bright-black */
    color: var(--ansi-white);
    font-size: var(--font-size-sm);
}
