/* =========================================================
   GHID DE STUDII - UNIFIED SIDEBAR
   ========================================================= */

.ghid-scope {
    --bg-color: #09090b; 
    --surface-color: #18181b; 
    --text-primary: #ededed; 
    --text-secondary: #a1a1aa; 
    --accent: #167543; 
    --nav-hover: #4ade80; 
    --brand-gold: #d4b064; 
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    --spotlight-gradient: rgba(255, 255, 255, 0.07);
    --glass-blur: blur(12px);
    --spotlight-size: 400px;
    --badge-bg: rgba(255, 255, 255, 0.05);

    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-color);
    width: 100%;
    min-height: 100vh;
    padding-top: 130px; 
}

body.light-mode .ghid-scope {
    --bg-color: #ffffff; 
    --surface-color: #f3f4f6; 
    --text-primary: #111827; 
    --text-secondary: #4b5563; 
    --accent: #15803d; 
    --nav-hover: #16a34a;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --spotlight-gradient: rgba(22, 117, 67, 0.05);
    --badge-bg: rgba(0, 0, 0, 0.05);
}

.ghid-scope section { padding: 0 !important; background: transparent !important; margin-bottom: 3rem; }
.ghid-scope .wrapper { max-width: 1280px; margin: 0 auto; padding: 0 24px 80px 24px; }
.ghid-scope .main-layout { display: grid; grid-template-columns: 280px 1fr; gap: 60px; align-items: start; }

/* --- SIDEBAR UNIFICAT --- */
.ghid-scope .ghid-sidebar {
    position: sticky; top: 150px; 
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px; padding: 24px;
    display: flex; flex-direction: column; gap: 20px;
}

.ghid-scope .sidebar-header { border-bottom: 1px solid var(--glass-border); padding-bottom: 12px; margin-bottom: 8px; }
.ghid-scope .sidebar-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-secondary); font-weight: 800; }
.ghid-scope .back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 12px; text-decoration: none; font-weight: 600; }
.ghid-scope .back-link:hover { color: var(--nav-hover); }

/* Buttons */
.ghid-scope .nav-btn {
    width: 100%;
    background: transparent !important; border: 1px solid transparent !important; box-shadow: none !important; 
    color: var(--text-primary); padding: 12px 16px; border-radius: 8px; text-align: left; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-family: inherit; font-size: 0.95rem; font-weight: 500 !important; transition: all 0.2s ease;
}
.ghid-scope .nav-btn:hover { background: rgba(255, 255, 255, 0.03) !important; color: var(--nav-hover) !important; }
.ghid-scope .nav-btn.active {
    background: var(--nav-hover) !important; color: #09090b !important;
    font-weight: 700 !important; box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3) !important;
}
body.light-mode .ghid-scope .nav-btn.active { color: #fff !important; }

.ghid-scope .nav-btn .nav-icon { opacity: 0; transform: translateX(-5px); transition: 0.2s; }
.ghid-scope .nav-btn:hover .nav-icon, .ghid-scope .nav-btn.active .nav-icon { opacity: 1; transform: translateX(0); }

/* --- CONTENT --- */
.ghid-scope .ghid-panel { display: none; animation: fadeIn 0.5s ease; }
.ghid-scope .ghid-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* HEADER */
.ghid-scope h1 {
    border-left: 6px solid var(--accent); padding-left: 20px;
    margin-bottom: 1.5rem; line-height: 1.3; font-weight: 700;
    font-size: clamp(1.8rem, 2.5vw, 2.5rem); font-family: 'Satoshi', sans-serif;
    color: var(--text-primary);
}
.ghid-scope .badge-actual {
    display: inline-block; background-color: var(--accent); color: #fff;
    font-size: 0.75rem; font-weight: 700; padding: 6px 12px;
    border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.ghid-scope .breadcrumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-bottom: 2rem; font-size: 0.85rem; color: var(--text-secondary);
}
.ghid-scope .breadcrumbs a { color: inherit; text-decoration: none; }
.ghid-scope .breadcrumbs a:hover { color: var(--nav-hover); }

/* Meta Info & Lead */
.ghid-scope header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--glass-border); }
.ghid-scope .meta-info {
    display: flex; gap: 20px; align-items: center; color: var(--text-secondary);
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500;
}
.ghid-scope .meta-info i { color: var(--nav-hover); }
.ghid-scope .lead-text { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; margin-top: 1.5rem; }

/* SECTIONS UI */
.ghid-scope h2 {
    font-family: 'Satoshi', sans-serif; font-size: 1.6rem; margin-top: 3.5rem; margin-bottom: 1.5rem;
    color: var(--text-primary); display: flex; align-items: center; gap: 10px;
}
.ghid-scope .h2-number {
    font-size: 0.8rem; color: var(--nav-hover); border: 1px solid var(--glass-border);
    padding: 2px 8px; border-radius: 6px; background: var(--badge-bg);
}

.ghid-scope .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }

.ghid-scope .spotlight-card {
    background: var(--glass-bg); border-radius: 16px; position: relative;
    border: 1px solid var(--glass-border); overflow: hidden; transition: transform 0.3s, border-color 0.3s;
    height: 100%; display: flex; flex-direction: column;
}
.ghid-scope .spotlight-card:hover { transform: translateY(-3px); border-color: var(--nav-hover); }
.ghid-scope .spotlight-overlay {
    pointer-events: none; position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(var(--spotlight-size) circle at var(--mouse-x) var(--mouse-y), var(--spotlight-gradient), transparent 40%);
    opacity: 0; transition: opacity 0.3s;
}
.ghid-scope .spotlight-card:hover .spotlight-overlay { opacity: 1; }
.ghid-scope .spotlight-card-content { position: relative; z-index: 2; padding: 1.5rem; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }

.ghid-scope .prog-badge {
    background: var(--badge-bg); color: var(--text-secondary); padding: 3px 8px;
    border-radius: 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
    border: 1px solid var(--glass-border); display: inline-block; margin-bottom: 0.8rem;
}
.ghid-scope .prog-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text-primary); margin-top: 0; line-height: 1.3; }

.ghid-scope .year-actions { display: flex; gap: 5px; margin-top: auto; }
.ghid-scope .year-btn {
    flex: 1; text-align: center; padding: 8px 0; font-size: 0.75rem;
    border: 1px solid var(--glass-border); border-radius: 6px; color: var(--text-secondary); background: transparent; transition: 0.2s;
}
.ghid-scope .year-btn:hover { background: var(--nav-hover); color: #09090b; font-weight: 600; border-color: var(--nav-hover); }

.ghid-scope .doc-list { display: flex; flex-direction: column; border-top: 1px solid var(--glass-border); }
.ghid-scope .doc-item {
    padding: 1rem 0; border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; color: var(--text-secondary); transition: 0.2s; text-decoration: none;
}
.ghid-scope .doc-item:hover { color: var(--nav-hover); padding-left: 10px; }
.ghid-scope .doc-icon { margin-right: 15px; color: var(--accent); }

.ghid-scope .staff-icon { font-size: 1.8rem; color: var(--text-secondary); margin-bottom: 1rem; }
.ghid-scope .spotlight-card:hover .staff-icon { color: var(--nav-hover); }
.ghid-scope .staff-link { display: flex; align-items: center; gap: 10px; margin-top: 1rem; color: var(--accent); font-weight: 600; font-size: 0.9rem; }

.ghid-scope .cta-card {
    background: radial-gradient(circle at top right, rgba(74, 222, 128, 0.1), transparent 50%), var(--glass-bg);
    text-align: center; padding: 2.5rem; margin-top: 3rem;
}
.ghid-scope .cta-button {
    display: inline-flex; align-items: center; gap: 10px; background: var(--text-primary); color: var(--bg-color);
    padding: 10px 25px; border-radius: 50px; font-weight: 600; margin-top: 1.5rem; transition: 0.3s;
}
.ghid-scope .cta-button:hover { transform: scale(1.05); background: var(--nav-hover); color: #09090b; }

@media (max-width: 900px) {
    .ghid-scope .main-layout { grid-template-columns: 1fr; gap: 20px; }
    .ghid-scope .ghid-sidebar { position: relative; top: 0; max-height: 300px; }
}