:root {
    --bs-primary: #ff9d00;
    --bs-primary-rgb: 255, 157, 0;
    --bs-body-bg: #f6f6f6;
    --bs-body-color: #1f2937; /* gray-800 */
    --primary-dark: #e68a00;
    --surface-light: #ffffff;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #121212;
    --bs-body-color: #e5e7eb; /* gray-200 */
    --surface-light: #1e1e1e;
}

body {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #e5e7eb;
    border-radius: 20px;
}
[data-bs-theme="dark"] .custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #374151;
}

/* Utility overrides and custom classes to match design */
.text-primary {
    color: var(--bs-primary) !important;
}
.bg-primary {
    background-color: var(--bs-primary) !important;
}
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.bg-surface {
    background-color: var(--surface-light);
}

/* Navbar */
.navbar {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.95);
}
[data-bs-theme="dark"] .navbar {
    background-color: rgba(30, 30, 30, 0.95);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

@media (min-width: 1920px) {
    .hero-section {
        height: 700px;
    }
}

.hero-bg {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 3s ease-out;
}
.hero-section:hover .hero-bg {
    transform: scale(1.05);
}
.hero-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

/* Avatar Section */
.avatar-container {
    margin-top: -2.5rem; /* -top-10 equivalent approx */
}
.avatar-img {
    width: 6rem;
    height: 6rem;
    border: 6px solid var(--surface-light);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sidebar Sticky */
.sidebar-sticky {
    position: sticky;
    top: 7rem; /* top-28 */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Prose Content Styling */
.prose {
    color: var(--bs-body-color);
    max-width: none;
    font-size: 1.05rem;
    line-height: 1.8;
}

.prose h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--bs-primary);
    color: var(--bs-body-color);
}

.prose p {
    margin-bottom: 1.5rem;
    color: #4b5563; /* gray-600 */
}
[data-bs-theme="dark"] .prose p {
    color: #d1d5db; /* gray-300 */
}

.prose img {
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    width: 100%;
    height: auto;
}

.prose p strong, .prose p b,
.prose li strong, .prose li b {
    background-color: #fff7ed; /* orange-50 */
    color: #1f2937; /* gray-800 */
    padding: 0.1em 0.4em;
    border-radius: 0.25em;
    font-weight: 600;
}
[data-bs-theme="dark"] .prose p strong, 
[data-bs-theme="dark"] .prose p b,
[data-bs-theme="dark"] .prose li strong, 
[data-bs-theme="dark"] .prose li b {
    background-color: rgba(255, 157, 0, 0.2);
    color: #f3f4f6; /* gray-100 */
}

/* Directory Widget Styling */
.directory-nav a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #4b5563; /* gray-600 */
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
[data-bs-theme="dark"] .directory-nav a {
    color: #9ca3af; /* gray-400 */
}

.directory-nav a:hover {
    background-color: rgba(0,0,0,0.03);
    color: var(--bs-primary);
}
[data-bs-theme="dark"] .directory-nav a:hover {
    background-color: rgba(255,255,255,0.05);
}

.directory-nav a.active {
    background-color: #fff7ed; /* orange-50 */
    color: var(--bs-primary);
    border-left-color: var(--bs-primary);
    font-weight: 600;
}
[data-bs-theme="dark"] .directory-nav a.active {
    background-color: rgba(255, 157, 0, 0.1);
}

/* Helper Classes */
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }

.border-primary-left {
    border-left: 4px solid var(--bs-primary) !important;
}
