/* ============================================
   NOMIDL BLOG — Premium Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Colors */
    --bg-primary: #060918;
    --bg-secondary: #0d1130;
    --bg-card: rgba(15, 20, 55, 0.6);
    --bg-card-hover: rgba(20, 28, 75, 0.8);
    --bg-sidebar: rgba(12, 16, 45, 0.7);
    --bg-nav: rgba(6, 9, 24, 0.85);

    --accent-gold: #f0c040;
    --accent-gold-dim: #c9a030;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;

    --text-primary: #f0f0f5;
    --text-secondary: #a0a4c0;
    --text-muted: #6b70a0;
    --text-accent: var(--accent-gold);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(240, 192, 64, 0.3);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(240, 192, 64, 0.08);
    --shadow-glow: 0 0 20px rgba(240, 192, 64, 0.15);

    /* Spacing */
    --nav-height: 70px;
    --container-max: 1280px;
    --container-padding: 24px;
    --section-gap: 64px;
    --card-radius: 16px;
    --btn-radius: 10px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(240, 192, 64, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(240, 192, 64, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(240, 192, 64, 0.5);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

h4 {
    font-size: 1.15rem;
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    height: 58px;
    background: rgba(6, 9, 24, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition-fast);
}

.nav-logo:hover {
    filter: brightness(1.2);
}

.nav-logo svg {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links ul {
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    position: relative;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    border-radius: 8px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-links a:hover::after,
.nav-links li.current-menu-item>a::after {
    width: 60%;
}

.nav-links li.current-menu-item>a {
    color: var(--accent-gold);
}


.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-card);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(240, 192, 64, 0.08);
    transform: rotate(20deg);
}

/* Show sun in dark mode, moon in light mode */
body .icon-moon {
    display: none;
}

body .icon-sun {
    display: block;
}

body.light-mode .icon-sun {
    display: none;
}

body.light-mode .icon-moon {
    display: block;
}

/* ---------- Nav Logo Premium ---------- */
.nav-logo-img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* Improve logo visibility in light mode — darken it so it's readable on light bg */
body.light-mode .nav-logo-img {
    filter: brightness(0.35) contrast(1.4) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* golden premium hover glow */
.nav-logo:hover .nav-logo-img {
    transform: scale(1.06);
    filter: drop-shadow(0 0 8px rgba(240, 192, 64, 0.35)) drop-shadow(0 0 14px rgba(240, 192, 64, 0.25));
}

/* Hamburger (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(240, 192, 64, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffd700 30%, var(--accent-blue) 70%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Search Bar */
.search-container {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.search-bar {
    width: 100%;
    padding: 16px 60px 16px 24px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.search-bar::placeholder {
    color: var(--text-muted);
}

.search-bar:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.15), var(--shadow-glow);
    background: rgba(15, 20, 55, 0.9);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dim));
    color: #060918;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(240, 192, 64, 0.4);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}

.section-header h2 {
    position: relative;
    padding-bottom: 4px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    border-radius: 3px;
}

.section-header .section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-card), transparent);
}

/* ============================================
   ARTICLE CARDS
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: var(--section-gap);
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--card-radius);
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(240, 192, 64, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.article-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: rgba(240, 192, 64, 0.15);
    box-shadow: var(--shadow-card-hover);
}

.article-card:hover::before {
    opacity: 1;
}

.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.article-card:hover .card-image img {
    transform: scale(1.08);
}

.card-image .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(6, 9, 24, 0.7) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.article-card:hover .card-overlay {
    opacity: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card-meta .author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-meta .author-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-meta .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.card-meta .date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-body {
    padding: 14px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
}

.article-card:hover .card-body h3,
.article-card h3 a {
    color: var(--accent-gold);
}

.card-body .excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Read More Button */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--accent-gold);
    background: rgba(240, 192, 64, 0.08);
    border: 1px solid rgba(240, 192, 64, 0.2);
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    margin-top: auto;
    align-self: flex-start;
}

.read-more:hover {
    background: rgba(240, 192, 64, 0.15);
    border-color: rgba(240, 192, 64, 0.4);
    transform: translateX(4px);
    box-shadow: 0 0 15px rgba(240, 192, 64, 0.1);
}

.read-more .arrow {
    transition: var(--transition-fast);
    font-size: 1rem;
}

.read-more:hover .arrow {
    transform: translateX(4px);
}

/* ============================================
   TWO-COLUMN LAYOUT (Category + Blog Post)
   ============================================ */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: var(--section-gap);
}

.main-content {
    min-width: 0;
}

/* Category Header */
.category-header {
    margin-bottom: 36px;
}

.category-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.category-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
    border-radius: 3px;
    animation: expandLine 1s ease-out forwards;
}

@keyframes expandLine {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

/* Category Articles Grid (2-col) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    max-height: calc(100vh - var(--nav-height) - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 28px;
    /* hide the scrollbar visually but allow scroll */
    scrollbar-width: thin;
    scrollbar-color: rgba(240, 192, 64, 0.2) transparent;
    padding-right: 4px;
}

.sidebar-widget {
    background: var(--bg-sidebar);
    border: 1px solid var(--border-card);
    border-radius: var(--card-radius);
    padding: 24px;
    backdrop-filter: blur(10px);
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--accent-gold), var(--accent-blue), transparent) 1;
}

/* Sidebar Search */
.sidebar-search {
    display: flex;
    gap: 8px;
}

.sidebar-search input {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

.sidebar-search input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(240, 192, 64, 0.1);
}

.sidebar-search button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dim));
    color: #060918;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sidebar-search button:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 10px rgba(240, 192, 64, 0.3);
}

/* Sidebar Article List */
.sidebar-article-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-article {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 8px;
    border-radius: 10px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.sidebar-article:hover {
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-article-thumb {
    width: 60px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article-info h4 {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
}

.sidebar-article-info a {
    color: inherit;
    text-decoration: none;
}

.sidebar-article:hover .sidebar-article-info h4 {
    color: var(--accent-gold);
}

/* ============================================
   BLOG POST PAGE
   ============================================ */
.post-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    transition: var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.tag:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.tag.tag-gold {
    background: rgba(240, 192, 64, 0.1);
    border-color: rgba(240, 192, 64, 0.2);
    color: var(--accent-gold);
}

.tag.tag-purple {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
}

.post-header {
    margin-bottom: 32px;
}

.post-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 16px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-meta .author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta .author-avatar-lg {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #060918;
}

.post-featured-image {
    width: 100%;
    border-radius: var(--card-radius);
    overflow: hidden;
    margin-bottom: 36px;
    border: 1px solid var(--border-card);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.post-content {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.post-content h3 {
    font-size: 1.2rem;
    margin: 30px 0 12px;
    color: var(--text-primary);
}

.post-content p {
    margin-bottom: 18px;
}

.post-content a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-decoration-color: rgba(59, 130, 246, 0.3);
    text-underline-offset: 3px;
    transition: var(--transition-fast);
}

.post-content a:hover {
    text-decoration-color: var(--accent-blue);
}

.post-content ul,
.post-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
    list-style: disc;
    color: var(--text-secondary);
}

.post-content ol li {
    list-style: decimal;
}

/* ============================================
   CODE BLOCKS — macOS terminal dark style
   ============================================ */
/* .post-content pre,
.post-content pre[class*="language-"] {
    background: #0f1117 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    padding: 44px 26px 26px 26px !important;
    margin: 28px 0 !important;
    overflow-x: auto !important;
    position: relative !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
}

/* ============================================
   CODE BLOCKS — Premium macOS editor style
   ============================================ */

.post-content pre,
.post-content pre[class*="language-"] {
    background: linear-gradient(145deg, #0f1117, #0a0c12) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    padding: 48px 28px 28px 28px !important;
    margin: 32px 0 !important;
    overflow: visible !important;
    position: relative !important;
    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Prism wraps <pre> inside div.code-toolbar — make it the positioning anchor */
div.code-toolbar {
    position: relative;
}

/* subtle hover lift like modern docs */
.post-content pre:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.65),
        0 0 20px rgba(240, 192, 64, 0.05);
}

/* macOS traffic light buttons — permanent, always visible */
.post-content pre::before,
.post-content pre[class*="language-"]::before,
.post-content div.code-toolbar::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow:
        22px 0 0 #ffbd2e,
        44px 0 0 #28ca41;
    pointer-events: none;
    z-index: 2;
}

/* code text — handles horizontal scroll here so pre can stay overflow:visible */
.post-content pre code,
.post-content pre[class*="language-"] code {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.88rem !important;
    line-height: 1.85 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #cdd6f4 !important;
    display: block !important;
    white-space: pre !important;
    overflow-x: auto !important;
}

/* smooth scrollbar for long code */
.post-content pre::-webkit-scrollbar {
    height: 6px;
}

.post-content pre::-webkit-scrollbar-thumb {
    background: rgba(240, 192, 64, 0.25);
    border-radius: 6px;
}

.post-content pre::-webkit-scrollbar-thumb:hover {
    background: rgba(240, 192, 64, 0.45);
}

/* red: parameter names */

/* Inline code inside paragraphs */
.post-content p code,
.post-content li code {
    font-family: 'JetBrains Mono', monospace !important;
    background: rgba(203, 166, 247, 0.1) !important;
    border: 1px solid rgba(203, 166, 247, 0.25) !important;
    padding: 2px 7px !important;
    border-radius: 5px !important;
    font-size: 0.84rem !important;
    color: #cba6f7 !important;
    display: inline !important;
    white-space: normal !important;
}

/* VS Code / One Dark Pro Theme for Prism.js */
.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #7f848e !important;
    font-style: italic !important;
}

.token.punctuation {
    color: #abb2bf !important;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #d19a66 !important; /* orange */
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.inserted {
    color: #98c379 !important; /* green */
}

.token.operator,
.token.entity,
.token.url {
    color: #56b6c2 !important; /* cyan */
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #c678dd !important; /* purple */
}

.token.function {
    color: #61afef !important; /* blue */
}

.token.class-name,
.token.builtin {
    color: #e5c07b !important; /* yellow */
}

.token.regex,
.token.important,
.token.variable {
    color: #e06c75 !important; /* red */
}

.post-content blockquote {
    border-left: 3px solid var(--accent-gold);
    padding: 16px 20px;
    margin: 24px 0;
    background: rgba(240, 192, 64, 0.04);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-content img {
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid var(--border-card);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    margin: 60px 0 20px;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: var(--transition-fast);
}

.pagination .page-numbers:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.pagination .page-numbers.current {
    color: var(--accent-gold);
    background: rgba(240, 192, 64, 0.1);
    border-color: var(--accent-gold);
}

.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
    min-width: unset;
    padding: 0 8px;
}

/* ============================================
   FOOTER — 4 Column Premium Design
   ============================================ */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 9, 24, 0.6) 100%);
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* --- Column 1: Brand --- */
.brand-col .footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-contact svg {
    color: var(--accent-gold);
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--accent-gold);
}

.footer-social-brand {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social-brand a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-social-brand a:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-4px);
    background: rgba(240, 192, 64, 0.08);
    box-shadow: 0 4px 12px rgba(240, 192, 64, 0.25);
}

/* --- Column 2 & 3: Links --- */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--accent-gold);
    transform: translateX(4px);
}

/* --- Column 4: Newsletter & Search --- */
.newsletter-col .footer-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.footer-newsletter-form,
.footer-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

/* Stack newsletter form vertically to match reference */
.footer-newsletter-form {
    flex-direction: column;
    gap: 12px;
}

.footer-newsletter-form input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-newsletter-form input:focus {
    border-color: var(--accent-gold);
    outline: none;
    background: rgba(255, 255, 255, 0.06);
}

.btn-subscribe {
    width: 100%;
    padding: 10px 16px;
    border-radius: 6px;
    background: #905cf8;
    /* Purple from reference */
    color: white;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-subscribe:hover {
    background: #7e4de0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(144, 92, 248, 0.25);
}

.mt-4 {
    margin-top: 32px;
}

.footer-search-form {
    position: relative;
    display: block;
}

.footer-search-form input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-search-form input:focus {
    border-color: var(--accent-gold);
    outline: none;
}

.footer-search-form button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    transition: var(--transition-fast);
}

.footer-search-form button:hover {
    color: var(--accent-gold);
}

/* --- Bottom Bar --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-card);
    font-size: 0.8rem;
}

.footer-heart {
    color: #e25555;
}

.footer-social-mini {
    display: flex;
    gap: 12px;
}

.footer-social-mini a {
    color: var(--text-muted);
    transition: var(--transition-fast);
    display: flex;
}

.footer-social-mini a:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

/* --- Mobile Responsive --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}


/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Staggered card animation */
.articles-grid .article-card:nth-child(1) {
    transition-delay: 0.05s;
}

.articles-grid .article-card:nth-child(2) {
    transition-delay: 0.12s;
}

.articles-grid .article-card:nth-child(3) {
    transition-delay: 0.19s;
}

.articles-grid .article-card:nth-child(4) {
    transition-delay: 0.26s;
}

.articles-grid .article-card:nth-child(5) {
    transition-delay: 0.33s;
}

.articles-grid .article-card:nth-child(6) {
    transition-delay: 0.4s;
}

/* Shimmer effect on section headers */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.shimmer-text {
    background: linear-gradient(90deg,
            var(--text-primary) 0%,
            var(--accent-gold) 25%,
            var(--text-primary) 50%,
            var(--accent-gold) 75%,
            var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s linear infinite;
}

/* Floating particles (decorative) */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-15px) rotate(5deg);
    }

    66% {
        transform: translateY(8px) rotate(-3deg);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Pulse glow */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(240, 192, 64, 0.1);
    }

    50% {
        box-shadow: 0 0 20px rgba(240, 192, 64, 0.2), 0 0 40px rgba(240, 192, 64, 0.05);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links,
    .nav-links ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(6, 9, 24, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 90px 30px 30px;
        gap: 4px;
        transition: var(--transition-smooth);
        border-left: 1px solid var(--border-subtle);
    }

    .nav-links.active,
    .nav-links ul.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 10px;
        display: block;
    }

    .nav-links a::after {
        display: none;
    }

    .articles-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }

    .hero {
        padding-top: calc(var(--nav-height) + 30px);
        padding-bottom: 30px;
    }

    .section-header {
        margin-bottom: 24px;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 16px;
    }

    .card-image {
        height: 180px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   PRISM TOOLBAR + COPY BUTTON
   ============================================ */

div.code-toolbar>.toolbar {
    position: absolute !important;
    top: 12px !important;
    right: 14px !important;
    opacity: 1 !important;
    z-index: 10;
}

div.code-toolbar>.toolbar .toolbar-item {
    margin-left: 6px;
}

div.code-toolbar>.toolbar .toolbar-item button,
div.code-toolbar>.toolbar .toolbar-item a {
    background: rgba(240, 192, 64, 0.12) !important;
    border: 1px solid rgba(240, 192, 64, 0.25) !important;
    color: var(--accent-gold) !important;
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

div.code-toolbar>.toolbar .toolbar-item button:hover,
div.code-toolbar>.toolbar .toolbar-item a:hover {
    background: rgba(240, 192, 64, 0.25) !important;
    border-color: rgba(240, 192, 64, 0.5) !important;
}

/* ============================================
   LIGHT MODE
   ============================================ */
body.light-mode {
    --bg-primary: #f5f6fa;
    --bg-secondary: #ebedf5;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --bg-sidebar: rgba(240, 241, 248, 0.9);
    --bg-nav: rgba(245, 246, 250, 0.92);

    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;

    --border-subtle: rgba(0, 0, 0, 0.07);
    --border-card: rgba(0, 0, 0, 0.1);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.14), 0 0 30px rgba(240, 192, 64, 0.06);
}

body.light-mode::before {
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
}

body.light-mode .navbar {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .navbar.scrolled {
    background: rgba(245, 246, 250, 0.97);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .article-card::before {
    background: linear-gradient(135deg, transparent, rgba(240, 192, 64, 0.12), transparent);
}

body.light-mode .post-content pre,
body.light-mode .post-content pre[class*="language-"] {
    background: linear-gradient(145deg, #1e2030, #191b2a) !important;
}

body.light-mode .sidebar-search input {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

body.light-mode .search-bar {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

body.light-mode .footer {
    background: linear-gradient(180deg, transparent 0%, rgba(235, 237, 245, 0.8) 100%);
}

body.light-mode .pagination .page-numbers {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

body.light-mode .pagination .page-numbers:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

body.light-mode .pagination .page-numbers.current {
    background: rgba(240, 192, 64, 0.15);
    border-color: var(--accent-gold);
    color: #b38510;
    /* Darker gold for text contrast in light mode */
}

body.light-mode ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

/* ============================================
    Author Bio Box Styling
============================================ */

/* Hide duplicate PublishPress authors box */
.pp-multiple-authors-wrapper,
.pp-author-boxes-wrapper,
.pp-multiple-authors-layout-boxed {
    display: none !important;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.author-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Force the post meta avatar img to be circular */
.author-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50% !important;
}

.author-bio-box {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.author-bio-box h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.author-bio-card {
    background: #0f152a; /* Match reference dark blue background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px; /* Smooth curvature */
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.author-bio-avatar {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Assure inner img is circular as well */
.author-bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50% !important;
}

.author-bio-details {
    flex-grow: 1;
}

.author-name {
    margin: 0 0 1rem 0;
}

.author-name a {
    color: #3b82f6; /* Blue matching reference */
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.author-name a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.author-desc {
    color: #94a3b8; /* Lighter grey matching reference */
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.author-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-view-posts {
    background: #4f46e5;
    color: #ffffff;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-view-posts:hover {
    background: #4338ca;
    color: #ffffff;
}

.btn-author-email {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-author-email:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

@media (max-width: 768px) {
    .author-bio-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .author-actions {
        justify-content: center;
    }
}

/* ============================================
    Article Keywords (Tags)
============================================ */
.article-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.keyword-tag {
    background: #1f2229; /* Dark gray */
    color: #e5e7eb; /* Light text */
    padding: 10px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.keyword-tag:hover {
    background: var(--bg-card-hover);
    color: var(--accent-gold);
    border-color: rgba(240, 192, 64, 0.3);
}

/* ============================================
    Social Share Inline Fix
============================================ */
.heateor_sss_sharing_container {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

/* Button row — flexbox, vertically centered */
.heateor_sss_sharing_container .heateor_sss_sharing_ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Cancel ALL floats the plugin sets on anchors and list items */
.heateor_sss_sharing_container .heateor_sss_sharing_ul a,
.heateor_sss_sharing_container .heateor_sss_sharing_ul li,
.heateor_sss_sharing_container .heateor_sss_sharing_ul .heateorSssSharing,
.heateor_sss_sharing_container .heateor_sss_sharing_ul .heateorSssSharingButton {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    margin: 0 !important;
}

/* Individual list items */
.heateor_sss_sharing_container .heateor_sss_sharing_li {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    float: none !important;
}

/* Everything inside a list item */
.heateor_sss_sharing_container .heateor_sss_sharing_li > * {
    margin: 0 !important;
    vertical-align: middle !important;
    float: none !important;
}

/* Clear-fix divs from the plugin should not break layout */
.heateor_sss_sharing_container .heateorSssClear {
    display: none !important;
}

/* ============================================
    Comment Form Styling
============================================ */
#respond {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

#reply-title {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

#reply-title::before {
    content: '\1F464'; /* Simple user icon */
    background: rgba(240, 192, 64, 0.15);
    color: var(--accent-gold);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.comment-notes, .logged-in-as {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-form label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.comment-form .required {
    color: #ef4444; /* red asterisk */
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.15);
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-gold);
    cursor: pointer;
}

.form-submit {
    margin-top: 1rem;
    text-align: right;
}

.form-submit .submit {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dim));
    color: #060918;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-submit .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 192, 64, 0.3);
}

/* Comment List Display */
.comment-list {
    margin-top: 3rem;
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-list .comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-list .avatar {
    border-radius: 50%;
}

.comment-list .fn {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-list .comment-metadata a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.comment-list .comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
}