/* =============================================
   WoW Midnight Guide — Shared Styles
   All Guide pages import this file.
   Page-specific styles go in each page's <style> block.
   ============================================= */

/* === CSS Variables === */
:root {
    --bg-darkest: #0a0a12;
    --bg-dark: #12121e;
    --bg-card: #1a1a2e;
    --bg-card-hover: #22223a;
    --bg-input: #16162a;
    --border: #2a2a4a;
    --border-light: #3a3a5a;
    --text-primary: #e8e6f0;
    --text-secondary: #a0a0c0;
    --text-muted: #6a6a8a;
    --accent-void: #9b59b6;
    --accent-void-dim: #7d3c98;
    --accent-light: #f1c40f;
    --accent-light-dim: #d4ac0d;
    --accent-fire: #e74c3c;
    --accent-fire-dim: #c0392b;
    --accent-arcane: #3498db;
    --accent-arcane-dim: #2980b9;
    --accent-nature: #2ecc71;
    --accent-teal: #1abc9c;
    --accent-shadow: #8e44ad;
    --accent-holy: #f39c12;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
}

/* === Base Reset === */
html { overflow-x: hidden; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-darkest);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 100px;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 20% 20%, rgba(155,89,182,0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(52,152,219,0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
#root { position: relative; z-index: 1; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darkest); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* === Header === */
.app-header {
    background: linear-gradient(135deg, #0d0d1a 0%, #1a0d2e 50%, #0d0d1a 100%);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}
.app-logo { width: 52px; height: 52px; flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(155,89,182,0.4)) drop-shadow(0 0 20px rgba(52,152,219,0.2)); }
.app-title-block h1 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, #c9a0dc, #e8e6f0, #f1c40f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}
.app-title-block .subtitle { font-size: 15px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }
.app-title-block .credit { font-size: 14px; color: var(--accent-light); letter-spacing: 1px; margin-top: 2px; }
.app-title-block .credit a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.app-title-block .credit a:hover { color: #fff; }
.header-btn-group {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}
.header-suggestions-btn, .header-realm-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.header-suggestions-btn {
    background: rgba(46,204,113,0.1);
    border: 1px solid rgba(46,204,113,0.3);
    color: var(--accent-nature);
}
.header-suggestions-btn:hover {
    background: rgba(46,204,113,0.2);
    border-color: var(--accent-nature);
    color: #fff;
}
.header-realm-btn {
    background: rgba(241,196,15,0.1);
    border: 1px solid rgba(241,196,15,0.4);
    color: var(--accent-light);
}
.header-realm-btn:hover {
    background: rgba(241,196,15,0.2);
    border-color: var(--accent-light);
    color: #fff;
}

/* === Sidebar Layout === */
.hub-layout {
    padding-left: 280px;
}
.hub-sidebar {
    width: 280px;
    background: var(--bg-dark);
    border-right: 1px solid var(--border);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    position: fixed;
    left: 0;
    top: 100px;
    bottom: 0;
    overflow-y: auto;
    z-index: 50;
    display: flex;
    flex-direction: column;
}
.hub-sidebar-title {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 600;
    color: #f1c40f;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 20px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
    text-align: center;
}
.hub-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    cursor: pointer;
    background: none;
    border-right: none;
    border-top: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
}
.hub-sidebar-link:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-left-color: var(--accent-void);
}
.hub-sidebar-link.active {
    background: var(--bg-card);
    color: var(--text-primary);
    border-left-color: var(--accent-teal);
}
.hub-sidebar-link .link-icon {
    font-size: 24px;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}
.hub-sidebar-link .link-label {
    line-height: 1.3;
}
.hub-sidebar-link .link-sub {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
}

/* === Main Content === */
.main-content { padding: 24px; max-width: 1400px; margin: 0 auto; }

/* === Shared Data Styling === */
.coords { color: var(--accent-light); font-family: monospace; font-size: 12px; }

/* === Footer === */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 40px;
}
.site-footer .footer-legal { margin-bottom: 4px; }
.site-footer .footer-sources { margin-bottom: 4px; }
.site-footer a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: #fff; }

/* === Responsive === */
@media (max-width: 700px) {
    body { padding-top: 100px; }
    .hub-layout { padding-left: 0; }
    .hub-sidebar {
        width: 100%;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 12px 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        overflow-x: auto;
        overflow-y: visible;
    }
    .hub-sidebar-title { display: none; }
    .hub-sidebar-link {
        padding: 10px 14px;
        font-size: 14px;
        border-left: none;
        border-bottom: 3px solid transparent;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        width: auto;
        flex: 1;
        min-width: 0;
    }
    .hub-sidebar-link:hover { border-left: none; border-left-color: transparent; }
    .hub-sidebar-link.active { border-left: none; border-bottom-color: var(--accent-teal); }
    .hub-sidebar-link .link-icon { font-size: 20px; width: auto; }
    .hub-sidebar-link .link-sub { display: none; }
    .main-content { padding: 16px; }
    .app-header { padding: 12px 16px; }
    .app-title-block h1 { font-size: 22px; }
}
