/* ═══════════════════════════════════════════
   Alcybercloud.it — Custom Stylesheet
   Dark theme · Cyan accents · Developer aesthetic
   ═══════════════════════════════════════════ */

/* ── Google Fonts loaded in layout head ── */

:root {
    /* ── Background Colors ── */
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #151c2c;
    --bg-card-hover: #1a2237;
    --bg-surface: #1e293b;

    /* ── Text Colors ── */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* ── Accent Colors (Primary Brand) ── */
    --accent: #00d4aa;
    --accent-dim: #00d4aa33;
    --accent-hover: #00f0c0;
    --accent-alt: #06b6d4;

    /* ── Border Colors ── */
    --border: #1e293b;
    --border-light: #334155;
    --border-accent: rgba(0, 212, 170, 0.2);

    /* ── Functional State Colors ── */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    /* ── Overlay & Subtle Colors ── */
    --bg-overlay: rgba(0, 212, 170, 0.05);
    --text-on-accent: #0a0e17;

    /* ── Typography ── */
    --font-display: 'JetBrains Mono', 'Fira Code', monospace;
    --font-body: 'Source Serif 4', 'Georgia', serif;
    --font-ui: 'DM Sans', 'Helvetica Neue', sans-serif;

    /* ── Radius ── */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    /* ── Spacing System (8px-based) ── */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    --space-2xl: 4rem;    /* 64px */
    --space-3xl: 5rem;    /* 80px */

    /* ── Shadows ── */
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 212, 170, 0.08);
    --shadow-glow: 0 0 30px rgba(0, 212, 170, 0.1);
    --shadow-glow-subtle: 0 4px 12px rgba(0, 212, 170, 0.15);

    /* ── Transitions ── */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Background Noise Texture ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('/images/noise-texture.svg');
    background-repeat: repeat;
    background-attachment: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
}

body > * { position: relative; z-index: 1; }

/* ── Dark Mode Refinement (Phase 7) ── */

/* Subtle brightness sections */
.section-dark {
    background: linear-gradient(180deg,
        rgba(10, 14, 23, 1) 0%,
        rgba(8, 12, 20, 0.95) 50%,
        rgba(10, 14, 23, 1) 100%
    );
}

.section-bright {
    background: linear-gradient(180deg,
        rgba(15, 20, 35, 0.5) 0%,
        rgba(10, 14, 23, 1) 100%
    );
}

/* Gradient overlay for semantic sections */
.hero-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 212, 170, 0.02) 0%,
        transparent 40%,
        rgba(139, 92, 246, 0.02) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Brightness adjustment for cards in dark theme */
.card {
    background: linear-gradient(135deg,
        rgba(30, 40, 60, 0.5) 0%,
        rgba(20, 28, 45, 0.8) 100%
    );
    border: 1px solid rgba(0, 212, 170, 0.1);
}

/* Text brightness variants */
.text-bright {
    color: #f0f4f8;
    font-weight: 500;
}

.text-dim {
    color: #8b9cbb;
}

.text-muted-darker {
    color: #5a6b7f;
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

/* ═══════════ TYPOGRAPHY ═══════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    line-height: 1.1;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.3;
}

h4 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h5 {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
}

h6 {
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.05em;
}

p {
    line-height: 1.75;
    letter-spacing: 0.005em;
}

small {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.accent-text { color: var(--accent); }

.label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    font-weight: 600;
}

/* ═══════════ LAYOUT ═══════════ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* ═══════════ NAVBAR ═══════════ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-logo span { color: var(--accent); }

.navbar-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.navbar-links a {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--text-primary);
}
.navbar-links a:hover::after,
.navbar-links a.active::after {
    width: 100%;
}

/* Mobile hamburger */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar-toggle { display: block; }
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .navbar-links.open { display: flex; }
}

/* ═══════════ HERO ═══════════ */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 3rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.08); }
}

.hero-content { max-width: 700px; }

.hero-greeting {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-greeting::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.hero h1 {
    margin-bottom: 1.25rem;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 550px;
}

/* ═══════════ BUTTONS ═══════════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    text-decoration: none;
    outline: none;
}

.btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Button Sizes */
.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-md {
    padding: 0.75rem 1.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-xs {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Button Variants */
.btn-primary {
    background: var(--accent);
    color: var(--text-on-accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-subtle);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn-outline:hover {
    background: var(--bg-overlay);
    color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-subtle);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
    transform: translateY(-1px);
}

.btn-ghost:focus {
    outline-color: var(--text-secondary);
}

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

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

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

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-group {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn-group-inline {
    display: flex;
    gap: var(--space-xs);
}

/* ═══════════ CARDS ═══════════ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--bg-surface);
    transition: transform var(--transition-fast);
}

.card:hover .card-image {
    transform: scale(1.02);
}

.card-body {
    padding: var(--space-lg);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--space-md);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
    font-weight: 700;
}

.card-title a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.card-title a:hover {
    color: var(--accent);
}

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ═══════════ TAGS / BADGES ═══════════ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    border-radius: 100px;
    background: var(--accent-dim);
    color: var(--accent);
    white-space: nowrap;
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ff6b6b;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ═══════════ BLOG POST CONTENT ═══════════ */

.post-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-primary);
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content img {
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.post-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: var(--font-display);
    font-size: 0.9rem;
    line-height: 1.6;
}

.post-content code {
    font-family: var(--font-display);
    font-size: 0.85em;
    background: var(--bg-surface);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--accent);
}

.post-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content ul, .post-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* ═══════════ POST HEADER ═══════════ */

.post-header {
    padding: 8rem 0 3rem;
    text-align: center;
}

.post-header .label {
    margin-bottom: 1rem;
    display: inline-block;
}

.post-header h1 {
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.post-meta-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

.post-cover {
    max-width: 900px;
    margin: 2rem auto 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-cover img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* ═══════════ SECTION HEADERS ═══════════ */

.section-header {
    margin-bottom: 2.5rem;
}

.section-header .label {
    margin-bottom: 0.75rem;
    display: block;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 550px;
    margin-top: 0.75rem;
}

/* ═══════════ FOOTER ═══════════ */

.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    margin-top: 3.5rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.85rem;
}
.footer-links a:hover { color: var(--accent); }

/* ═══════════ PAGINATION ═══════════ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    list-style: none;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.pagination li a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination li.active span {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.pagination li.disabled span {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ═══════════ PAGE HEADER ═══════════ */

.page-header {
    padding: 8rem 0 3rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.3;
}

/* ═══════════ CATEGORY SIDEBAR ═══════════ */

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky;
    top: 6rem;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.sidebar-list li:last-child a { border-bottom: none; }

.sidebar-list li a:hover { color: var(--accent); }

.sidebar-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
}

/* ═══════════ PROJECT DETAIL ═══════════ */

.project-detail-header {
    padding: 8rem 0 2rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.project-body {
    padding: 3rem 0;
}

.project-body .post-content {
    max-width: 800px;
}

/* ═══════════ ADMIN STYLES ═══════════ */

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

@media (max-width: 900px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100vh;
        z-index: 999;
        transition: left var(--transition-smooth);
        animation: none;
    }
    .admin-sidebar.mobile-open {
        left: 0;
        animation: slide-in-left 0.4s ease-out;
        box-shadow: var(--shadow-glow-subtle);
    }
    .admin-menu-toggle {
        display: flex;
    }
}

.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

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

.admin-nav {
    list-style: none;
    padding: 0 0.75rem;
}

.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition);
    margin-bottom: 0.25rem;
}

.admin-nav li a:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.admin-nav li a.active {
    background: var(--accent-dim);
    color: var(--accent);
}

.admin-nav li a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Mobile Menu Toggle ── */
.admin-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    transition: all var(--transition);
}

.admin-menu-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-smooth);
}

/* Hamburger animation */
.admin-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.admin-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.admin-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── Sidebar Footer ── */
.admin-sidebar-footer {
    padding: 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.admin-sidebar-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.admin-sidebar-link-site {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.admin-sidebar-link-site:hover {
    color: var(--text-secondary);
}

.admin-logout-form {
    display: inline;
}

.admin-main {
    padding: 2rem 2.5rem;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-header h1 {
    font-size: 1.5rem;
}

/* ── Admin Table ── */

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-secondary);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: var(--bg-card);
}

.admin-table .title-cell {
    font-weight: 600;
    color: var(--text-primary);
}

.status-badge {
    display: inline-flex;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-published {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-draft {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

/* ── Admin Forms ── */

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    transition: color var(--transition-fast);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95em;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-dim);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: var(--font-body);
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-inline {
    margin: 0;
}

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
    display: block;
}

.form-success {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
    display: block;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ═══════════ RESPONSIVE DESIGN OPTIMIZATION ═══════════ */

/* Large screens 1920+ */
@media (min-width: 1920px) {
    .container { max-width: 1400px; }
}

/* Tablets landscape 1024-1919 */
@media (min-width: 1024px) and (max-width: 1919px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets 768-1023 */
@media (max-width: 1023px) {
    .navbar-links { gap: 1rem; font-size: 0.85rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .section { padding: 3rem 0; }
    .section-header { margin-bottom: 2rem; }
}

/* Mobile optimization 480-768 */
@media (max-width: 768px) {
    :root { font-size: 14px; }
    .navbar { padding: 0.75rem 0; }

    /* Admin responsive */
    .admin-main {
        padding: 1rem;
        padding-top: 4rem;
    }

    .admin-header {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        flex-wrap: wrap;
    }

    .admin-header h1 {
        font-size: 1.25rem;
        width: 100%;
    }

    .admin-header a {
        font-size: 0.85rem;
    }
}

/* Small mobile max-480 */
@media (max-width: 480px) {
    .navbar-links { gap: 0.5rem; }
    .container { padding: 0 0.75rem; }
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* ── Flash Messages ── */

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

/* ═══════════ STATS CARDS ═══════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════ LOGIN PAGE ═══════════ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
}

.login-card h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* ═══════════ EMPTY STATE ═══════════ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state svg {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    opacity: 0.4;
}

/* ═══════════ ANIMATIONS ═══════════ */

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 212, 170, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation Utility Classes */
.animate-fade-up {
    animation: fade-up 0.6s ease-out;
}

.animate-slide-left {
    animation: slide-in-left 0.5s ease-out;
}

.animate-slide-right {
    animation: slide-in-right 0.5s ease-out;
}

.animate-scale-in {
    animation: scale-in 0.4s ease-out;
}

.animate-glow-pulse {
    animation: glow-pulse 2s infinite;
}

.animate-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

.animate-in {
    animation: fade-up 0.6s ease-out both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ═══════════ UTILITY ═══════════ */

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-lg { margin-bottom: var(--space-lg); }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.inline-flex { display: inline-flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-half { display: flex; align-items: center; gap: 0.5rem; }

/* Form Utilities */
.form-max-width { max-width: 900px; }
.form-max-width-sm { max-width: 500px; }

/* Color Picker Container */
.color-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Color Input */
.color-input {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* Hex Color Input */
.hex-input { max-width: 120px; }

/* Spacing Utilities */
.ml-sm { margin-left: var(--space-sm); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }

/* Checkbox Label Color */
.checkbox-label { color: var(--text-secondary); }

/* Image Preview */
.img-preview {
    max-height: 200px;
    border-radius: var(--radius-sm);
}

/* Social Media Share Buttons */
.btn-linkedin {
    background: #0A66C2;
    color: white;
    border: none;
}

.btn-linkedin:hover {
    background: #095195;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.2);
}

.btn-facebook {
    background: #1877F2;
    color: white;
    border: none;
}

.btn-facebook:hover {
    background: #0a66d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
}

/* Featured Icon */
.featured-icon {
    color: var(--warning);
    font-size: 1rem;
}

/* Filter Row */
.filter-row {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.filter-form {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    flex: 1;
}

/* Color Circle (Category, Tag colors) */
.color-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.banner-wip {
    position: sticky;
    top: 66px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 1.5rem;
    background: #2a1f00;
    border-bottom: 1px solid #f59e0b44;
    color: #f59e0b;
    font-size: 0.85rem;
    font-family: var(--font-display);
}

.banner-wip button {
    background: none;
    border: none;
    color: #f59e0b;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.banner-wip button:hover {
    opacity: 1;
}
/* ═══════════ PHASE 3: SOFT DELETES & ACTIVITIES ═══════════ */

/* Soft Delete Status Styling */
.status-deleted {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.table-row-deleted {
    opacity: 0.7;
    background-color: rgba(239, 68, 68, 0.03);
}

.table-row-deleted:hover {
    background-color: rgba(239, 68, 68, 0.08);
}

/* Activity Description Badges */
.status-created {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-updated {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-restored {
    background-color: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Role Badges */
.badge-admin {
    background-color: var(--accent);
    color: white;
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    display: inline-flex;
}

.badge-editor {
    background-color: #f59e0b;
    color: white;
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    display: inline-flex;
}

.badge-viewer {
    background-color: var(--text-muted);
    color: white;
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    display: inline-flex;
}

/* Activity Log Table */
.activity-properties {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-tabs .btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tabs .btn:hover,
.filter-tabs .btn.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}
