@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* --- Palette: Deep Carbon (Minimalist Luxury) --- */
    --bg-body: #0a0a0a;
    /* Deepest Black */
    --bg-surface: #171717;
    /* Dark Gray Surface */
    --bg-surface-hover: #262626;
    /* Slightly lighter for hover */

    --text-main: #ededed;
    /* Off-white for high readability */
    --text-muted: #a3a3a3;
    /* Neutral Gray */
    --text-subtle: #525252;
    /* Darker Gray for borders/dividers */

    --accent: #3b82f6;
    /* Professional Royal Blue */
    --accent-glow: rgba(59, 130, 246, 0.4);

    --success: #10b981;
    --danger: #ef4444;

    /* --- Dimensions & Spacing --- */
    --container-width: 1200px;
    --header-height: 70px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* --- Typography --- */
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* --- Legacy Compatibility (Do Not Remove) --- */
    --bg-primary: var(--bg-body);
    --bg-secondary: var(--bg-surface);
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    --post-border: rgba(255, 255, 255, 0.05);
    /* For specific borders that might still expect this var */
    --post-black: var(--text-main);
    /* Allow headers in post content to match new theme */
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
    /* Base 16px */
}

body {
    margin: 0;
    font-family: var(--font-stack);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.8;
    /* Luxury reading spacing */
    font-size: 1.125rem;
    /* 18px base size */
    -webkit-font-smoothing: antialiased;
}

/* --- Layout Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
    /* Huge breathing room */
}

.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* --- Typography Overrides --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    letter-spacing: -0.02em;
    /* Tight tracking for modern feel */
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-glass {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Navigation --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    /* Frosted */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--accent);
}

.main-nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.main-nav a:hover {
    color: var(--text-main);
}

/* Dropdowns */
.dropdown {
    position: absolute;
    top: 100%;
    left: -10px;
    background: var(--bg-surface);
    min-width: 200px;
    padding: 8px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.main-nav li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    padding: 10px 16px;
    display: block;
    border-radius: 4px;
}

.dropdown a:hover {
    background: var(--bg-surface-hover);
    color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-bg {
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.4);
    z-index: 0;
}

.hero-overlay {
    background: linear-gradient(to top, var(--bg-body) 10%, transparent 90%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-label {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* --- Bento / Cards (No Borders) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.bento-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* No border */
}

.bento-card:hover {
    transform: translateY(-4px);
    background: var(--bg-surface-hover);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    background: #222;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card-meta {
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-subtle);
    display: flex;
    gap: 16px;
}

/* Badges */
.badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- Article / Post --- */
.post-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 80px;
    margin-top: 60px;
    align-items: start;
}

.post-content-area {
    width: 100%;
    /* Limit reading width inside the column if clearer */
}

.post-body {
    max-width: 720px;
    /* Optimal reading width */
    font-size: 1.25rem;
    /* 20px */
    color: #d4d4d4;
}

.post-body p {
    margin-bottom: 2rem;
}

.post-body h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

/* Sidebar Widgets */
.sidebar-sticky-container {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.widget-box {
    background: var(--bg-surface);
    padding: 24px;
    border-radius: var(--radius-md);
}

/* --- Review Components --- */
.review-box {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    gap: 40px;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid var(--accent);
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    font-weight: 800;
}

/* --- Footer --- */
footer {
    background: var(--bg-body);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0;
    color: var(--text-muted);
}

/* --- Mobile --- */
@media (max-width: 900px) {
    .post-wrapper {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }
}