:root {
    --primary: #bf9324;
    --primary-hover: #4f46e5;
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --sidebar-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 280px;
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.nav-links li {
}
.nav-links li:first-child {
    margin-bottom: 1rem;
}

.nav-links a {
    display: block;
    text-decoration: none;
    color: var(--primary);
    font-size: 0.9rem;
    border: 1px solid #f1f5f9;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}
.nav-links a.current{
    color: #fff;
    background: var(--primary);
}

.nav-links a:hover {
    background: #f1f5f9;
}

.nav-links a.current {
    background: var(--primary);
    color: white;
}
.nav-links a.current:hover {
    background: #cea641;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 3rem;
    width: 100%;
    max-width: 1200px;
}

header {
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Grid Layout */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.widget-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.widget-card.disabled{
    --border-color: #fff;
    pointer-events: none;
    cursor: default;
}

.widget-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.widget-card h3 {
    font-size: 1rem;
    color: var(--text-main);
    text-align: center;
    margin-top: auto;
}

.widget-card .tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    background: #eef2ff;
    padding: 0.25rem 0.6rem;
    border-radius: 2rem;
    display: inline-block;
    width: fit-content;
}

/* Detail Page specific */
.detail-view {
}

.detail-view section {
    margin-bottom: 2rem;
}

.detail-view h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.placeholder-img img{
    border: 10px solid #e2e8f0;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
}


figure{
    display: inline-block;
    background: #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
figcaption{
    padding-top: 1rem;
}

figcaption,
figure img,
figure video{
    max-width: 870px;
}

img{
    display: block;
}

span.tag{
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    color: #fff;
}
span.section{
    background: #2b87da;
}
span.row{
    background: #29c4a9;
}
span.module{
    background: #4c5866;
}

p + p{
    margin-top: 1.4rem;
}