/* =========================================================
   ZENVERIX BLOG
   MUBIN DESIGN STYLE
   Modern SaaS + Developer UI
   Light Mode Default
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {
    --bg: #f7f7f8;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --surface-soft: #fafafa;

    --text: #111111;
    --text-secondary: #666666;
    --text-muted: #999999;

    --primary: #e50914;
    --primary-dark: #b80710;

    --accent: #ff6a00;
    --danger: #dc2626;

    --border: rgba(0, 0, 0, 0.09);
    --border-strong: rgba(0, 0, 0, 0.15);

    --shadow-sm:
        0 4px 16px rgba(0, 0, 0, 0.05);

    --shadow-md:
        0 12px 35px rgba(0, 0, 0, 0.08);

    --shadow-lg:
        0 25px 70px rgba(0, 0, 0, 0.13);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --container: 1200px;

    --transition:
        0.25s ease;

    --header-height: 76px;
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode {
    --bg: #050505;
    --bg-soft: #0a0a0a;
    --surface: #101010;
    --surface-soft: #151515;

    --text: #ffffff;
    --text-secondary: #a7a7a7;
    --text-muted: #707070;

    --primary: #ff2d00;
    --primary-dark: #d92100;

    --accent: #ff6a00;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --shadow-sm:
        0 4px 18px rgba(0, 0, 0, 0.3);

    --shadow-md:
        0 15px 45px rgba(0, 0, 0, 0.45);

    --shadow-lg:
        0 30px 90px rgba(0, 0, 0, 0.65);
}


/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background: var(--bg);
    color: var(--text);

    font-family: "Poppins", sans-serif;

    line-height: 1.6;

    transition:
        background var(--transition),
        color var(--transition);

    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

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

::selection {
    background: var(--primary);
    color: #fff;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 20px;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #333;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: var(--header-height);

    background:
        color-mix(in srgb, var(--surface) 90%, transparent);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        background var(--transition),
        border-color var(--transition);
}

.header-container {
    width: min(100% - 40px, var(--container));
    height: 100%;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}

.logo-img {
    width: 36px;
    height: 36px;

    object-fit: contain;
}

.logo-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.6px;
}


/* =========================================================
   DESKTOP NAV
========================================================= */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 7px;
}

.main-navigation a {
    position: relative;

    padding: 9px 14px;

    border-radius: 10px;

    color: var(--text-secondary);

    font-size: 14px;
    font-weight: 600;

    transition:
        color var(--transition),
        background var(--transition);
}

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

.main-navigation a.active {
    color: var(--primary);
    background: rgba(229, 9, 20, 0.07);
}


/* =========================================================
   HEADER CONTROLS
========================================================= */

.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-control,
.mobile-menu-toggle {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--surface);

    color: var(--text-secondary);

    transition:
        transform var(--transition),
        color var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.header-control:hover,
.mobile-menu-toggle:hover {
    color: var(--primary);
    border-color: rgba(229, 9, 20, 0.25);

    transform: translateY(-2px);
}

#langToggle {
    width: auto;
    padding: 0 12px;
}

#langLabel {
    font-size: 11px;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

.mobile-navigation {
    position: fixed;

    top: calc(var(--header-height) + 8px);
    left: 20px;
    right: 20px;

    z-index: 999;

    display: none;
    flex-direction: column;
    gap: 5px;

    padding: 10px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-lg);

    transform: translateY(-10px);
    opacity: 0;

    transition:
        opacity var(--transition),
        transform var(--transition);
}

.mobile-navigation.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mobile-navigation a {
    padding: 12px 14px;

    border-radius: 10px;

    color: var(--text-secondary);

    font-size: 14px;
    font-weight: 600;
}

.mobile-navigation a:hover,
.mobile-navigation a.active {
    color: var(--primary);
    background: rgba(229, 9, 20, 0.07);
}


/* =========================================================
   BLOG HERO
========================================================= */

.blog-hero {
    position: relative;

    min-height: 520px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(229, 9, 20, 0.09),
            transparent 35%
        ),
        var(--bg);
}

.hero-background {
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;

    opacity: 0.4;

    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);

    background-size: 60px 60px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 85%
        );
}

.hero-orb {
    position: absolute;

    border-radius: 50%;

    filter: blur(70px);

    opacity: 0.12;
}

.hero-orb-one {
    width: 300px;
    height: 300px;

    top: -120px;
    right: 10%;

    background: var(--primary);
}

.hero-orb-two {
    width: 230px;
    height: 230px;

    bottom: -100px;
    left: 5%;

    background: var(--accent);
}

.hero-orb-three {
    width: 150px;
    height: 150px;

    top: 35%;
    right: 35%;

    background: #ff2d00;
}

.blog-hero-content {
    position: relative;
    z-index: 2;

    width: min(100% - 40px, 900px);

    margin: auto;

    padding: 90px 0;

    text-align: center;
}


/* =========================================================
   HERO LABEL
========================================================= */

.hero-label {
    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 22px;
    padding: 7px 12px 7px 7px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface);

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 700;

    box-shadow: var(--shadow-sm);
}

.hero-label-icon {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--primary);
    color: #fff;
}


/* =========================================================
   HERO TITLE
========================================================= */

.blog-hero h1 {
    max-width: 800px;

    margin: auto;

    color: var(--text);

    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -3px;
}

.blog-hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            #ff2d00
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.blog-hero-content > p {
    max-width: 680px;

    margin: 25px auto 0;

    color: var(--text-secondary);

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   HERO STATS
========================================================= */

.hero-stats {
    margin-top: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat strong {
    color: var(--text);

    font-size: 25px;
    font-weight: 800;
}

.hero-stat span {
    color: var(--text-muted);

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-stat-divider {
    width: 1px;
    height: 34px;

    background: var(--border-strong);
}


/* =========================================================
   BLOG CONTAINER
========================================================= */

.blog-container {
    width: min(100% - 40px, var(--container));

    margin: auto;

    padding: 70px 0 100px;
}


/* =========================================================
   TOOLBAR
========================================================= */

.blog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 55px;
}


/* =========================================================
   SEARCH
========================================================= */

.search-box {
    position: relative;

    width: min(100%, 360px);
}

.search-box input {
    width: 100%;
    height: 48px;

    padding:
        0 44px
        0 43px;

    border: 1px solid var(--border);
    border-radius: 13px;

    outline: none;

    background: var(--surface);

    color: var(--text);

    font-size: 13px;

    box-shadow: var(--shadow-sm);

    transition:
        border var(--transition),
        box-shadow var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(229, 9, 20, 0.08);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--text-muted);

    pointer-events: none;
}

.clear-search {
    position: absolute;

    right: 8px;
    top: 50%;

    width: 32px;
    height: 32px;

    transform: translateY(-50%);

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: var(--text-muted);
}

.clear-search:hover {
    background: var(--surface-soft);
    color: var(--primary);
}


/* =========================================================
   FILTERS
========================================================= */

.filter-group {
    display: flex;
    align-items: center;

    gap: 7px;

    overflow-x: auto;

    padding-bottom: 3px;
}

.filter-group::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex-shrink: 0;

    padding: 9px 15px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface);

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 600;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.filter-btn:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.filter-btn.active {
    border-color: var(--primary);

    background: var(--primary);

    color: #fff;

    box-shadow:
        0 7px 20px rgba(229, 9, 20, 0.18);
}


/* =========================================================
   ADMIN PANEL
========================================================= */

.admin-panel {
    display: none;

    margin-bottom: 70px;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--surface);

    box-shadow: var(--shadow-md);

    animation: adminIn 0.35s ease;
}

.admin-panel.active,
.admin-panel[aria-hidden="false"] {
    display: block;
}

@keyframes adminIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   ADMIN HEADER
========================================================= */

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 32px;
}

.admin-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.admin-icon {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(229, 9, 20, 0.09);

    color: var(--primary);

    font-size: 18px;
}

.admin-eyebrow,
.section-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: var(--primary);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.6px;
}

.admin-header h2 {
    font-size: 24px;
    line-height: 1.2;
}

.admin-header p {
    margin-top: 5px;

    color: var(--text-secondary);

    font-size: 13px;
}

.close-admin {
    width: 38px;
    height: 38px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface);

    color: var(--text-secondary);

    transition: var(--transition);
}

.close-admin:hover {
    color: var(--primary);
    border-color: var(--primary);
}


/* =========================================================
   FORM
========================================================= */

.post-form {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.form-group label {
    color: var(--text);

    font-size: 12px;
    font-weight: 700;
}

.form-group small {
    color: var(--text-muted);

    font-size: 11px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid var(--border);
    border-radius: 11px;

    outline: none;

    background: var(--surface-soft);

    color: var(--text);

    font-size: 13px;

    transition:
        border var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.form-group input,
.form-group select {
    height: 46px;

    padding: 0 14px;
}

.form-group textarea {
    min-height: 240px;

    padding: 14px;

    resize: vertical;

    line-height: 1.7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);

    background: var(--surface);

    box-shadow:
        0 0 0 4px rgba(229, 9, 20, 0.07);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 220px;

    gap: 18px;
}

.input-unit {
    position: relative;
}

.input-unit input {
    padding-right: 55px;
}

.input-unit span {
    position: absolute;

    top: 50%;
    right: 14px;

    transform: translateY(-50%);

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   IMAGE UPLOAD
========================================================= */

.image-upload-box {
    position: relative;

    border: 1px dashed var(--border-strong);
    border-radius: 14px;

    background: var(--surface-soft);

    transition:
        border-color var(--transition),
        background var(--transition);
}

.image-upload-box:hover {
    border-color: var(--primary);

    background:
        rgba(229, 9, 20, 0.025);
}

.image-upload-label {
    min-height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 7px;

    cursor: pointer;

    text-align: center;
}

.image-upload-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 5px;

    border-radius: 15px;

    background: rgba(229, 9, 20, 0.08);

    color: var(--primary);

    font-size: 21px;
}

.image-upload-label strong {
    color: var(--text);

    font-size: 13px;
}

.image-upload-label span {
    color: var(--text-muted);

    font-size: 11px;
}


/* =========================================================
   IMAGE PREVIEW
========================================================= */

.image-preview {
    position: relative;

    margin-top: 12px;

    border-radius: 14px;

    overflow: hidden;

    border: 1px solid var(--border);

    background: var(--surface-soft);
}

.image-preview[hidden] {
    display: none;
}

.image-preview img {
    width: 100%;
    max-height: 360px;

    object-fit: cover;
}

.remove-image {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 10px;

    background: rgba(0, 0, 0, 0.7);

    color: #fff;

    backdrop-filter: blur(8px);

    transition: var(--transition);
}

.remove-image:hover {
    background: var(--danger);

    transform: scale(1.05);
}


/* =========================================================
   ADMIN ACTIONS
========================================================= */

.admin-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    padding-top: 5px;
}

.btn-secondary,
.btn-publish,
.btn-danger {
    min-height: 43px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 17px;

    border-radius: 10px;

    font-size: 12px;
    font-weight: 700;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.btn-secondary {
    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--text-secondary);
}

.btn-secondary:hover {
    color: var(--text);

    background: var(--surface-soft);

    transform: translateY(-2px);
}

.btn-publish {
    border: 0;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #ff2d00
        );

    color: #fff;

    box-shadow:
        0 8px 22px rgba(229, 9, 20, 0.18);
}

.btn-publish:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(229, 9, 20, 0.25);
}

.btn-publish:disabled {
    opacity: 0.55;
    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: 30px;

    line-height: 1.2;

    letter-spacing: -1px;
}

.article-count {
    display: flex;
    align-items: baseline;
    gap: 5px;

    color: var(--text-muted);

    font-size: 12px;
}

.article-count span:first-child {
    color: var(--text);

    font-size: 19px;
    font-weight: 800;
}


/* =========================================================
   BLOG GRID
========================================================= */

.blog-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   BLOG CARD
   Compatible with JS generated cards
========================================================= */

.blog-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);

    box-shadow: var(--shadow-sm);

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(229, 9, 20, 0.2);

    box-shadow: var(--shadow-lg);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.blog-card-image,
.card-image,
.article-card-image {
    position: relative;

    width: 100%;
    height: 215px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #111,
            #333
        );
}

.blog-card-image img,
.card-image img,
.article-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease;
}

.blog-card:hover img,
.card-image:hover img,
.article-card:hover img {
    transform: scale(1.045);
}


/* =========================================================
   CARD BODY
========================================================= */

.blog-card-content,
.card-content,
.article-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 21px;
}

.blog-card-category,
.card-category,
.article-category {
    width: fit-content;

    margin-bottom: 10px;
    padding: 5px 9px;

    border-radius: 999px;

    background: rgba(229, 9, 20, 0.08);

    color: var(--primary);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card h3,
.card-content h3,
.article-card h3 {
    display: -webkit-box;

    margin-bottom: 10px;

    overflow: hidden;

    color: var(--text);

    font-size: 18px;
    line-height: 1.35;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-card p,
.card-content p,
.article-card p {
    display: -webkit-box;

    margin-bottom: 18px;

    overflow: hidden;

    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.75;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


/* =========================================================
   CARD META
========================================================= */

.blog-card-meta,
.card-meta,
.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: auto;
    padding-top: 15px;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 10px;
}

.blog-card-meta span,
.card-meta span,
.article-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


/* =========================================================
   CARD TAGS
========================================================= */

.blog-card-tags,
.card-tags,
.article-card-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 10px;
}

.blog-card-tags span,
.card-tags span,
.article-card-tags span {
    padding: 4px 7px;

    border-radius: 6px;

    background: var(--surface-soft);

    color: var(--text-muted);

    font-size: 9px;
}


/* =========================================================
   DELETE BUTTON
========================================================= */

.delete-post,
.delete-article,
.card-delete {
    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 5;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;

    background: rgba(0, 0, 0, 0.7);

    color: #fff;

    backdrop-filter: blur(8px);

    transition: var(--transition);
}

.delete-post:hover,
.delete-article:hover,
.card-delete:hover {
    background: var(--danger);

    transform: scale(1.05);
}


/* =========================================================
   EMPTY BLOG
========================================================= */

.empty-blog {
    padding: 80px 20px;

    text-align: center;

    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);

    background: var(--surface);
}

.empty-blog[hidden] {
    display: none;
}

.empty-icon {
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 17px;

    border-radius: 17px;

    background: var(--surface-soft);

    color: var(--text-muted);

    font-size: 23px;
}

.empty-blog h3 {
    margin-bottom: 6px;

    font-size: 18px;
}

.empty-blog p {
    color: var(--text-secondary);

    font-size: 12px;
}


/* =========================================================
   ADMIN ACCESS BUTTON
========================================================= */

.admin-toggle {
    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 900;

    min-height: 47px;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 0 15px 0 7px;

    border: 1px solid var(--border);

    border-radius: 999px;

    background: var(--surface);

    color: var(--text);

    font-size: 11px;
    font-weight: 700;

    box-shadow: var(--shadow-lg);

    transition:
        transform var(--transition),
        border-color var(--transition);
}

.admin-toggle:not([hidden]) {
    display: inline-flex;
}

.admin-toggle:hover {
    transform: translateY(-3px);

    border-color: var(--primary);
}

.admin-toggle-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--primary);

    color: #fff;
}


/* =========================================================
   ARTICLE MODAL
========================================================= */

.article-modal,
.confirm-modal {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;
}

.article-modal[aria-hidden="false"],
.confirm-modal[aria-hidden="false"] {
    display: flex;
}

.article-modal-backdrop,
.confirm-modal-backdrop {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.72);

    backdrop-filter: blur(10px);
}

.article-modal-content {
    position: relative;
    z-index: 2;

    width: min(100%, 850px);
    max-height: 90vh;

    overflow-y: auto;

    padding: 35px;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--surface);

    color: var(--text);

    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.35);

    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   MODAL CLOSE
========================================================= */

.modal-close {
    position: sticky;

    float: right;

    top: 0;
    right: 0;

    z-index: 5;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface);

    color: var(--text-secondary);
}

.modal-close:hover {
    color: var(--primary);

    border-color: var(--primary);
}


/* =========================================================
   MODAL CATEGORY
========================================================= */

.modal-category {
    width: fit-content;

    margin-bottom: 15px;
    padding: 6px 10px;

    border-radius: 999px;

    background: rgba(229, 9, 20, 0.09);

    color: var(--primary);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
}


/* =========================================================
   MODAL IMAGE
========================================================= */

.modal-image-wrapper {
    clear: both;

    margin: 20px 0;

    overflow: hidden;

    border-radius: 15px;

    border: 1px solid var(--border);
}

.modal-image-wrapper[hidden] {
    display: none;
}

.modal-image-wrapper img {
    width: 100%;
    max-height: 420px;

    object-fit: cover;
}


/* =========================================================
   MODAL TITLE
========================================================= */

.article-modal-content > h2 {
    clear: both;

    margin: 15px 0;

    font-size: clamp(25px, 4vw, 38px);

    line-height: 1.2;

    letter-spacing: -1px;
}


/* =========================================================
   MODAL META
========================================================= */

.modal-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 18px;

    margin-bottom: 28px;

    color: var(--text-muted);

    font-size: 11px;
}

.modal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* =========================================================
   MODAL ARTICLE CONTENT
========================================================= */

.modal-article-content {
    color: var(--text-secondary);

    font-size: 14px;
    line-height: 2;
}

.modal-article-content p {
    margin-bottom: 18px;
}

.modal-article-content h1,
.modal-article-content h2,
.modal-article-content h3,
.modal-article-content h4 {
    margin:
        28px 0 12px;

    color: var(--text);

    line-height: 1.3;
}

.modal-article-content a {
    color: var(--primary);

    text-decoration: underline;
}

.modal-article-content ul,
.modal-article-content ol {
    margin: 15px 0 20px;
    padding-left: 25px;
}

.modal-article-content li {
    margin-bottom: 7px;
}

.modal-article-content blockquote {
    margin: 20px 0;

    padding: 15px 18px;

    border-left: 3px solid var(--primary);

    background: var(--surface-soft);

    color: var(--text-secondary);
}

.modal-article-content pre {
    overflow-x: auto;

    margin: 20px 0;
    padding: 18px;

    border-radius: 12px;

    background: #0b0b0b;

    color: #eee;

    font-family: Consolas, monospace;

    font-size: 12px;

    line-height: 1.7;
}

.modal-article-content code {
    font-family: Consolas, monospace;
}

.modal-article-content :not(pre) > code {
    padding: 3px 6px;

    border-radius: 5px;

    background: var(--surface-soft);

    color: var(--primary);
}


/* =========================================================
   MODAL TAGS
========================================================= */

.modal-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 30px;

    padding-top: 20px;

    border-top: 1px solid var(--border);
}

.modal-tags span {
    padding: 6px 9px;

    border-radius: 999px;

    background: var(--surface-soft);

    color: var(--text-secondary);

    font-size: 10px;
}


/* =========================================================
   CONFIRM DELETE MODAL
========================================================= */

.confirm-modal-box {
    position: relative;
    z-index: 2;

    width: min(100%, 420px);

    padding: 30px;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--surface);

    text-align: center;

    box-shadow: var(--shadow-lg);

    animation: modalIn 0.25s ease;
}

.confirm-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 16px;

    background: rgba(220, 38, 38, 0.1);

    color: var(--danger);

    font-size: 21px;
}

.confirm-modal-box h3 {
    margin-bottom: 7px;

    font-size: 20px;
}

.confirm-modal-box p {
    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.7;
}

.confirm-actions {
    display: flex;
    justify-content: center;

    gap: 10px;

    margin-top: 25px;
}

.btn-danger {
    border: 0;

    background: var(--danger);

    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(220, 38, 38, 0.25);
}


/* =========================================================
   NOTIFICATION
========================================================= */

.notification {
    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 3000;

    max-width: 360px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 14px 10px 10px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--surface);

    color: var(--text);

    box-shadow: var(--shadow-lg);

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition);
}

.notification.show,
.notification.active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.notification-icon {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: rgba(34, 197, 94, 0.12);

    color: #16a34a;

    font-size: 12px;
}

.notification-text {
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    border-top: 1px solid var(--border);

    background: var(--surface);
}

.footer-container {
    width: min(100% - 40px, var(--container));

    margin: auto;

    padding: 60px 0;

    display: grid;

    grid-template-columns: 1fr 2fr;

    gap: 80px;
}


/* =========================================================
   FOOTER BRAND
========================================================= */

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    width: 34px;
    height: 34px;

    object-fit: contain;
}

.footer-logo-name {
    font-size: 20px;
    font-weight: 800;
}

.footer-tagline {
    margin-top: 10px;

    color: var(--text-muted);

    font-size: 12px;
}


/* =========================================================
   FOOTER LINKS
========================================================= */

.footer-links {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 35px;
}

.footer-links-column {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 8px;
}

.footer-links-column h4 {
    margin-bottom: 8px;

    font-size: 12px;
}

.footer-links-column a {
    color: var(--text-muted);

    font-size: 11px;

    transition:
        color var(--transition),
        transform var(--transition);
}

.footer-links-column a:hover {
    color: var(--primary);

    transform: translateX(3px);
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
    width: min(100% - 40px, var(--container));

    margin: auto;

    padding: 20px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 10px;
}


/* =========================================================
   LOADING STATE
========================================================= */

.blog-loading {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.skeleton {
    height: 340px;

    border-radius: var(--radius-md);

    background:
        linear-gradient(
            90deg,
            var(--surface-soft),
            var(--surface),
            var(--surface-soft)
        );

    background-size: 200% 100%;

    animation:
        skeletonLoading 1.5s infinite;
}

@keyframes skeletonLoading {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1000px) {

    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .blog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .blog-loading {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .footer-links {
        max-width: 700px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 700px) {

    :root {
        --header-height: 68px;
    }

    .header-container,
    .blog-container,
    .footer-container,
    .footer-bottom {
        width: min(100% - 28px, var(--container));
    }

    .logo-name {
        font-size: 18px;
    }

    .logo-img {
        width: 31px;
        height: 31px;
    }

    #langToggle {
        display: none;
    }

    .blog-hero {
        min-height: 480px;
    }

    .blog-hero-content {
        width: min(100% - 28px, 900px);

        padding: 75px 0;
    }

    .blog-hero h1 {
        font-size: clamp(38px, 12vw, 58px);

        letter-spacing: -2px;
    }

    .blog-hero-content > p {
        font-size: 13px;
    }

    .hero-stats {
        gap: 18px;
    }

    .hero-stat strong {
        font-size: 20px;
    }

    .hero-stat span {
        font-size: 9px;
    }

    .blog-container {
        padding-top: 45px;
    }

    .blog-toolbar {
        flex-direction: column;
        align-items: stretch;

        margin-bottom: 40px;
    }

    .search-box {
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .admin-panel {
        padding: 20px;

        border-radius: 18px;
    }

    .admin-heading {
        gap: 11px;
    }

    .admin-header h2 {
        font-size: 19px;
    }

    .admin-header p {
        font-size: 11px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        flex-direction: column-reverse;
    }

    .admin-actions button {
        width: 100%;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-loading {
        grid-template-columns: 1fr;
    }

    .article-modal {
        padding: 10px;
    }

    .article-modal-content {
        max-height: 94vh;

        padding: 22px 18px;

        border-radius: 19px;
    }

    .article-modal-content > h2 {
        font-size: 25px;
    }

    .modal-image-wrapper img {
        max-height: 300px;
    }

    .confirm-modal {
        padding: 15px;
    }

    .confirm-modal-box {
        padding: 24px 18px;
    }

    .admin-toggle {
        right: 15px;
        bottom: 15px;
    }

    .notification {
        right: 15px;
        left: 15px;
        bottom: 15px;

        max-width: none;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-links-column:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;

        gap: 7px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .hero-stats {
        gap: 12px;
    }

    .hero-stat strong {
        font-size: 18px;
    }

    .hero-stat-divider {
        height: 28px;
    }

    .blog-card-image,
    .card-image,
    .article-card-image {
        height: 190px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-links-column:last-child {
        grid-column: auto;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}