/* ======================================================
   CASE: SHADOW SYNDICATE
   Story Mode, Level Select, Case Board & High Score UI
====================================================== */

/* Level Select Grid */
.story-level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

.level-card {
    background: var(--card-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.level-card.unlocked {
    cursor: pointer;
    border-color: rgba(212, 175, 55, 0.4);
}

.level-card.unlocked:hover {
    border-color: var(--antique-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4), 0 0 10px var(--gold-glow);
}

.level-card.locked {
    opacity: 0.5;
    filter: grayscale(0.8);
    cursor: not-allowed;
}

.level-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.chap-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.15);
    color: var(--antique-gold);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.lvl-num {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lvl-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.lvl-stars {
    font-size: 1.1rem;
    color: var(--antique-gold);
    letter-spacing: 2px;
}

/* Case Board (Explorer Style Cork Board) */
.case-board-cork {
    background: #2b1d14;
    border: 6px solid #4a3424;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8), 0 10px 25px rgba(0,0,0,0.6);
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 480px;
    position: relative;
}

.case-evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}

.evidence-card {
    background: #f4ecd8;
    color: #1a1a1a;
    padding: 1rem;
    border-radius: 2px;
    box-shadow: 3px 5px 12px rgba(0,0,0,0.4);
    position: relative;
    transform: rotate(-1deg);
    transition: transform 0.2s ease;
}

.evidence-card:nth-child(even) {
    transform: rotate(1.5deg);
}

.evidence-card:hover {
    transform: scale(1.04) rotate(0deg);
    z-index: 10;
}

.ev-pin {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.3rem;
}

.ev-icon {
    font-size: 2.2rem;
    text-align: center;
    margin: 0.5rem 0;
}

.ev-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #8b0000;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid #d5c8ad;
    padding-bottom: 0.2rem;
}

.ev-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #333;
}

.case-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #a89481;
}

/* High Score & Statistics Layout */
.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: var(--card-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.2rem;
    text-align: center;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.stat-value {
    font-family: monospace;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--antique-gold);
}

/* Achievements List */
.achievements-section-title {
    font-family: var(--font-heading);
    color: var(--antique-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--antique-gold);
    padding-left: 0.5rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.achievement-item {
    background: var(--card-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    transition: all 0.2s ease;
}

.achievement-item.unlocked {
    border-color: rgba(212, 175, 55, 0.4);
}

.achievement-item.locked {
    opacity: 0.5;
}

.ach-icon-circle {
    width: 44px;
    height: 44px;
    background: var(--card-surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.achievement-item.unlocked .ach-icon-circle {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--antique-gold);
}

.ach-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.ach-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.2rem 0;
}

.ach-status {
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: var(--antique-gold);
}

.achievement-item.locked .ach-status {
    color: #64748b;
}

/* Result Modal Stars Box */
.result-stars-box {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    font-size: 2.2rem;
    margin: 0.8rem 0;
}

.star-icon.earned {
    color: var(--antique-gold);
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.star-icon.empty {
    color: #475569;
}

