/* 경로/파일: server/app/static/style.css */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.18), transparent 22%),
        radial-gradient(circle at 88% 10%, rgba(14, 165, 233, 0.12), transparent 20%),
        radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.08), transparent 32%),
        linear-gradient(180deg, #08111f 0%, #0b1424 30%, #0a1629 65%, #091120 100%);
    color: #e5e7eb;
    font-family: Arial, "Malgun Gothic", sans-serif;
    line-height: 1.6;
    word-break: break-word;
}

a {
    color: #93c5fd;
    text-decoration: none;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

a:hover {
    text-decoration: none;
}

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

button {
    font: inherit;
}

.page-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.page-glow {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    filter: blur(90px);
    opacity: 0.45;
}

.page-glow-left {
    top: 40px;
    left: -80px;
    width: 260px;
    height: 260px;
    background: rgba(37, 99, 235, 0.16);
}

.page-glow-right {
    top: 140px;
    right: -100px;
    width: 320px;
    height: 320px;
    background: rgba(56, 189, 248, 0.12);
}

.wrap {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 24px 36px;
}

/* =========================
   Header
========================= */

.site-header {
    margin-bottom: 28px;
}

.site-header a {
    color: #f8fafc;
}

.site-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.brand-block {
    min-width: 0;
    max-width: 760px;
}

.brand-kicker {
    margin: 0 0 10px;
    color: #60a5fa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-logo {
    margin: 0;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.site-logo a:hover {
    opacity: 0.96;
}

.sub {
    margin: 12px 0 0;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.8;
    max-width: 860px;
}
.header-control-panel {
    width: 100%;
    padding: 14px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(11, 17, 32, 0.94), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(71, 85, 105, 0.42);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.header-control-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.header-control-title {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.header-control-sub {
    color: #60a5fa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.header-control-divider {
    height: 1px;
    margin: 12px 0;
    background: rgba(71, 85, 105, 0.32);
}

.header-right {
    min-width: 0;
    width: 520px;
    max-width: 100%;
    display: flex;
    justify-content: flex-end;
}
.top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.top-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.82);
    border: 1px solid rgba(71, 85, 105, 0.65);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
    white-space: nowrap;
}

.top-nav a:hover {
    background: rgba(30, 41, 59, 0.94);
    border-color: rgba(96, 165, 250, 0.45);
    transform: translateY(-1px);
}

.top-nav a.active {
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.primary-nav {
    justify-content: flex-start;
}

.primary-nav a {
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
}

/* =========================
   Auth
========================= */

.auth-top-nav {
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.auth-top-nav a {
    font-size: 13px;
    min-height: 36px;
    padding: 0 12px;
}

#authStatus {
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.62);
    color: #dbeafe;
    font-weight: 700;
}

#authStatus:not([hidden]) {
    display: inline-flex;
}

#authStatus[hidden] {
    display: none !important;
}

#googleLoginBtn {
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border-color: #2563eb;
    color: #ffffff;
}

#googleLoginBtn:hover {
    background: linear-gradient(180deg, #2c6df3, #1e40af);
}

#kakaoLoginBtn {
    background: #fee500;
    border-color: #e5d200;
    color: #111827;
    font-weight: 900;
}

#kakaoLoginBtn:hover {
    background: #ffea39;
}

#adminPostsBtn {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.34);
    color: #a7f3d0;
}

#adminPostsBtn:hover {
    background: rgba(16, 185, 129, 0.22);
}

#logoutBtn {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.34);
    color: #fca5a5;
}

#logoutBtn:hover {
    background: rgba(239, 68, 68, 0.24);
}

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

.header-profile-avatar {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    object-fit: cover;
    background: #0f172a;
    border: 1px solid rgba(71, 85, 105, 0.62);
    flex: 0 0 auto;
}

/* =========================
   Main / Panels
========================= */

.main-content {
    min-height: 460px;
}

.panel {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(20, 28, 43, 0.92));
    border: 1px solid rgba(71, 85, 105, 0.42);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.03) inset;
    backdrop-filter: blur(10px);
}

.sub-panel {
    padding: 18px;
}

.section-head {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.section-head-tight {
    margin-bottom: 14px;
}

.section-head h2 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: #f8fafc;
}

.section-sub {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
}

.section-head-main {
    min-width: 0;
}

.section-head-side {
    flex-shrink: 0;
}

.section-count {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(71, 85, 105, 0.55);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 800;
}

/* =========================
   Hero
========================= */

.hero-panel,
.admin-hero-panel {
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 30%),
        linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(15, 23, 42, 0.2)),
        rgba(15, 23, 42, 0.96);
}

.homepage-hero-panel {
    margin-bottom: 18px;
}

.hero-head,
.admin-hero-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.hero-copy {
    max-width: 690px;
    min-width: 0;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #60a5fa;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-title {
    margin: 0 0 14px;
    font-size: 46px;
    line-height: 1.16;
    letter-spacing: -0.05em;
    color: #f8fafc;
}

.hero-desc {
    margin: 0;
    color: #d1d5db;
    font-size: 16px;
    line-height: 1.9;
    max-width: 680px;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.info-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: #dbeafe;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hero-meta-card {
    width: 340px;
    max-width: 100%;
    padding: 18px;
    border-radius: 16px;
    background: rgba(10, 15, 28, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.42);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.hero-meta-title {
    margin: 0 0 12px;
    color: #f3f4f6;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(71, 85, 105, 0.46);
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
}

/* =========================
   Home Extra Sections
========================= */

.feature-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.feature-card {
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.92));
    border: 1px solid rgba(71, 85, 105, 0.36);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.feature-kicker {
    margin: 0 0 10px;
    color: #60a5fa;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.feature-title {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 20px;
    line-height: 1.45;
    letter-spacing: -0.03em;
}

.feature-desc {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.85;
}

.category-panel,
.promise-panel {
    padding-top: 24px;
    padding-bottom: 24px;
}

.category-grid,
.promise-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.category-card,
.promise-item {
    padding: 18px;
    border-radius: 16px;
    background: rgba(11, 17, 32, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.35);
}

.category-title,
.promise-title {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.category-desc,
.promise-desc {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
}

/* =========================
   Trust / Introduction
========================= */

.trust-panel {
    padding: 20px 24px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.trust-item {
    padding: 18px;
    border-radius: 16px;
    background: rgba(11, 17, 32, 0.92);
    border: 1px solid rgba(71, 85, 105, 0.35);
}

.trust-title {
    margin: 0 0 8px;
    color: #f8fafc;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.trust-desc {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
}

/* =========================
   List
========================= */

.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-item {
    padding: 18px 0;
    border-bottom: 1px solid rgba(71, 85, 105, 0.28);
}

.post-item:first-child {
    padding-top: 0;
}

.post-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.post-card {
    padding: 0 0 18px;
}

.post-card-inner {
    display: block;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.94), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(71, 85, 105, 0.34);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.post-card-inner:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(180deg, rgba(13, 20, 36, 0.96), rgba(18, 28, 48, 0.94));
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.post-item h3,
.post-title {
    margin: 12px 0 8px;
    font-size: 24px;
    line-height: 1.42;
    letter-spacing: -0.03em;
}

.post-title a {
    color: #f8fafc;
}

.post-title a:hover {
    color: #bfdbfe;
}

.post-item a,
.content a,
.source-link {
    color: #93c5fd;
}

.post-item a:hover,
.content a:hover,
.source-link:hover {
    color: #bfdbfe;
}

.post-extra {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.post-extra p {
    margin: 0;
}

.post-actions {
    margin-top: 16px;
    flex-wrap: wrap;
}

.user-upload-image-figure {
    margin: 0 0 14px;
    padding: 0;
}

.user-upload-image-figure img {
    display: block;
    width: auto;
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(71, 85, 105, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

/* =========================
   Meta / Badge
========================= */

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
}

.status-published {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.28);
}

.status-draft {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.28);
}

.ts {
    color: #94a3b8;
    font-size: 13px;
}

.summary {
    margin: 10px 0 0;
    color: #d1d5db;
    line-height: 1.88;
    font-size: 15px;
}

.summary-detail {
    font-size: 18px;
    line-height: 1.92;
    color: #dbe3ee;
}

.muted-summary {
    color: #94a3b8;
}

.source,
.source-domain,
.model-name {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
}

/* ===== CATEGORY COLOR ===== */

.badge[data-category="notice"] {
    background: linear-gradient(180deg, #ef4444, #dc2626);
}

.badge[data-category="recommend"] {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

.badge[data-category="windows-fix"] {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.badge[data-category="game-fix"] {
    background: linear-gradient(180deg, #8b5cf6, #7c3aed);
}

.badge[data-category="pc-build"] {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.badge[data-category="nas"] {
    background: linear-gradient(180deg, #06b6d4, #0891b2);
}

.badge[data-category="review"] {
    background: linear-gradient(180deg, #ec4899, #db2777);
}

.badge[data-category="work-log"] {
    background: linear-gradient(180deg, #10b981, #059669);
}

/* =========================
   Detail
========================= */

.detail-panel {
    padding: 28px;
}

.detail-article-panel {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(20, 28, 43, 0.96), rgba(10, 15, 28, 0.96));
}

.detail-topbar {
    margin-bottom: 16px;
}

.detail-topbar-rich {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #93c5fd;
    font-size: 14px;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(71, 85, 105, 0.36);
}

.back-link:hover {
    color: #bfdbfe;
    background: rgba(30, 41, 59, 0.92);
}

.detail-header {
    margin-bottom: 22px;
}

.detail-header-rich {
    margin-bottom: 24px;
}

.detail-title {
    margin: 14px 0 12px;
    font-size: 42px;
    line-height: 1.22;
    color: #f8fafc;
    letter-spacing: -0.05em;
}

.detail-summary {
    max-width: 920px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.detail-intro-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.detail-intro-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(10, 15, 28, 0.92);
    border: 1px solid rgba(71, 85, 105, 0.34);
}

.detail-intro-kicker {
    margin: 0 0 8px;
    color: #60a5fa;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.detail-intro-text {
    margin: 0;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.75;
    font-weight: 700;
}

.meta-box {
    padding: 16px;
    border-radius: 14px;
    background: rgba(10, 15, 28, 0.94);
    border: 1px solid rgba(71, 85, 105, 0.34);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.meta-label {
    margin: 0 0 8px;
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
}

.meta-value {
    margin: 0;
    color: #f3f4f6;
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
}

.sub-title {
    margin: 0 0 14px;
    font-size: 22px;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.source-panel,
.content-panel,
.detail-guide-panel {
    background:
        linear-gradient(180deg, rgba(11, 17, 32, 0.94), rgba(15, 23, 42, 0.92));
}

.source-panel-head,
.content-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.source-panel-desc,
.content-panel-desc {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
}

.source-link-wrap {
    margin: 0;
    word-break: break-all;
}

.source-link {
    font-size: 14px;
    line-height: 1.9;
}

.content-panel {
    margin-top: 0;
}

.content {
    line-height: 1.98;
    color: #f3f4f6;
    font-size: 16px;
    word-break: break-word;
}

.content-rich {
    padding: 4px 2px 2px;
    font-size: 16px;
    line-height: 2.02;
    color: #e5e7eb;
}

.content br + br {
    display: block;
    content: "";
    margin-top: 10px;
}

.content p:first-child {
    margin-top: 0;
}

.content p:last-child {
    margin-bottom: 0;
}

.detail-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.detail-guide-item {
    padding: 16px;
    border-radius: 14px;
    background: rgba(10, 15, 28, 0.88);
    border: 1px solid rgba(71, 85, 105, 0.28);
}

.detail-guide-title {
    margin: 0 0 8px;
    color: #f8fafc;
    font-size: 16px;
    font-weight: 900;
}

.detail-guide-desc {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
}

.detail-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
}

.detail-footer-rich {
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* =========================
   Admin
========================= */

.admin-filter-panel,
.admin-edit-form-panel,
.admin-edit-overview-panel,
.admin-dashboard-panel {
    padding-top: 20px;
    padding-bottom: 20px;
}

.admin-dashboard-grid,
.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-stat-card,
.admin-overview-card {
    padding: 18px;
    border-radius: 16px;
    background: rgba(10, 15, 28, 0.92);
    border: 1px solid rgba(71, 85, 105, 0.34);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.admin-stat-label,
.admin-overview-title {
    margin: 0 0 8px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-stat-value {
    margin: 0;
    color: #f8fafc;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.admin-overview-text {
    margin: 0;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.8;
    word-break: break-word;
}

.admin-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(71, 85, 105, 0.52);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
}

.admin-filter-chip:hover {
    background: rgba(30, 41, 59, 0.94);
    border-color: rgba(96, 165, 250, 0.45);
}

.admin-filter-chip.active {
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border-color: #2563eb;
    color: #ffffff;
}

.admin-small-btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.26);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: #dbeafe;
    font-size: 13px;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.56);
}

.admin-title-wrap {
    min-width: 260px;
}

.admin-post-link {
    color: #f8fafc;
    font-weight: 800;
    line-height: 1.6;
}

.admin-post-link:hover {
    color: #bfdbfe;
}

.admin-post-summary {
    margin: 8px 0 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
}

.admin-action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-action-stack form {
    margin: 0;
}

.admin-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
}

.admin-publish-btn {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.admin-publish-btn:hover {
    background: rgba(34, 197, 94, 0.22);
}

.admin-draft-btn {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.admin-draft-btn:hover {
    background: rgba(245, 158, 11, 0.22);
}

.admin-delete-btn {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.admin-delete-btn:hover {
    background: rgba(239, 68, 68, 0.22);
}

.admin-edit-help-box {
    padding: 18px;
    border-radius: 16px;
    background: rgba(10, 15, 28, 0.92);
    border: 1px solid rgba(71, 85, 105, 0.34);
}

.admin-edit-help-title {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 16px;
    font-weight: 900;
}

.admin-edit-help-list {
    margin: 0;
    padding-left: 18px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.85;
}

.mono {
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

/* =========================
   Buttons / Empty
========================= */

.read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border: 1px solid #2563eb;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.read-more-btn:hover {
    background: linear-gradient(180deg, #2b6df1, #1e40af);
    border-color: #2b6df1;
    color: #ffffff;
    transform: translateY(-1px);
}

.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid rgba(100, 116, 139, 0.72);
    color: #e5e7eb;
    font-weight: 800;
}

.ghost-btn:hover {
    border-color: rgba(96, 165, 250, 0.68);
    background: rgba(37, 99, 235, 0.08);
    color: #ffffff;
    transform: translateY(-1px);
}

.empty-state {
    padding: 14px 4px 6px;
}

.rich-empty-state {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: stretch;
    padding: 6px 0 0;
}

.empty-state-main {
    padding: 12px 6px 10px;
}

.empty-kicker {
    margin: 0 0 10px;
    color: #60a5fa;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.empty-title {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.empty-desc {
    margin: 0;
    color: #94a3b8;
    line-height: 1.88;
    font-size: 15px;
}

.empty-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.empty-state-side {
    display: flex;
}

.mini-info-card {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    background: rgba(10, 15, 28, 0.94);
    border: 1px solid rgba(71, 85, 105, 0.35);
}

.mini-info-title {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 16px;
    font-weight: 900;
}

.mini-info-list {
    margin: 0;
    padding-left: 18px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.85;
}

/* =========================
   Footer
========================= */

.site-footer {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(71, 85, 105, 0.26);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 18px;
}

.footer-col {
    min-width: 0;
}

.footer-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 900;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.footer-desc {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.82;
}

.footer-mini-title {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.footer-list {
    margin: 0;
    padding-left: 18px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.85;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
}

/* =========================
   Focus / Accessibility
========================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
    border-radius: 10px;
}

/* =========================
   Profile / Avatar
========================= */

.profile-preview-avatar {
    width: 92px;
    height: 92px;
}

.profile-save-ok,
.profile-save-error {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
}

.profile-save-ok {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #bbf7d0;
}

.profile-save-error {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
}

.profile-avatar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.profile-avatar-option {
    display: block;
}

.profile-avatar-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.profile-avatar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(10, 15, 28, 0.92);
    border: 1px solid rgba(71, 85, 105, 0.34);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-avatar-card:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.58);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.profile-avatar-option input:checked + .profile-avatar-card {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2) inset;
    background: rgba(15, 23, 42, 0.98);
}

.profile-avatar-option-img {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid rgba(71, 85, 105, 0.3);
    background: #0f172a;
}

.profile-avatar-label {
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

/* =========================
   Auto / Utility
========================= */

.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

/* ===== ADMIN USER CARD ===== */

.admin-user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 320px;
}

.admin-user-left {
    flex: 0 0 auto;
}

.admin-user-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.admin-avatar {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    object-fit: cover;
    display: block;
    border: 2px solid #374151;
    background: #111827;
}

.admin-avatar-fallback {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #f9fafb;
    background: linear-gradient(135deg, #1f2937, #374151);
    border: 2px solid #374151;
}

.admin-user-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-user-name {
    font-size: 18px;
    line-height: 1.2;
    color: #f9fafb;
}

.admin-user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: #dc2626;
}

.admin-state-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.admin-state-active {
    color: #052e16;
    background: #86efac;
}

.admin-state-inactive {
    color: #ffffff;
    background: #6b7280;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1100px) {
    .feature-band,
    .category-grid,
    .promise-grid,
    .footer-grid,
    .admin-dashboard-grid,
    .admin-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .site-header-top {
        flex-direction: column;
    }

.header-right {
    width: 100%;
}

.header-control-panel {
    width: 100%;
}

.primary-nav,
.auth-top-nav {
    justify-content: flex-start;
}

    .hero-head,
    .admin-hero-head,
    .rich-empty-state {
        grid-template-columns: none;
        flex-direction: column;
    }

    .hero-meta-card {
        width: 100%;
    }

    .trust-grid,
    .feature-band,
    .category-grid,
    .promise-grid,
    .footer-grid,
    .detail-meta-grid,
    .detail-intro-band,
    .detail-guide-grid,
    .admin-form-grid,
    .admin-form-grid-inline,
    .admin-dashboard-grid,
    .admin-overview-grid,
    .profile-avatar-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
    }
}

@media (max-width: 820px) {
    .admin-user-card {
        min-width: 0;
        width: 100%;
    }

    .admin-avatar,
    .admin-avatar-fallback {
        width: 56px;
        height: 56px;
    }

    .profile-preview-avatar {
        width: 72px;
        height: 72px;
    }

    .admin-user-name {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .wrap {
        padding: 12px;
    }

    .site-header-top {
        flex-direction: column;
        gap: 12px;
    }

    .header-right {
        width: 100%;
    }

    .top-nav {
        flex-wrap: wrap;
        gap: 6px;
    }

    .hero-title {
        font-size: 20px;
        line-height: 1.4;
    }

    .panel {
        padding: 14px;
    }

    .post-title {
        font-size: 16px;
    }

    .summary {
        font-size: 14px;
    }

    .meta-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    .header-control-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-nav a,
    .auth-top-nav a,
    .primary-nav a {
        width: 100%;
    }    
}

@media (max-width: 640px) {
    .wrap {
        padding: 18px 14px 28px;
    }

    .panel {
        padding: 18px;
        border-radius: 16px;
    }

    .site-logo {
        font-size: 31px;
    }

    .hero-title {
        font-size: 33px;
    }

    .detail-title {
        font-size: 30px;
    }

    .post-item h3,
    .post-title {
        font-size: 21px;
    }

    .summary-detail {
        font-size: 16px;
    }

    .top-nav {
        gap: 8px;
    }

    .top-nav a {
        font-size: 13px;
        min-height: 34px;
        padding: 0 10px;
    }

    .hero-cta-row,
    .empty-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .read-more-btn,
    .ghost-btn {
        width: 100%;
    }

    .post-card-inner {
        padding: 16px;
    }

    .admin-action-stack {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-action-stack form,
    .admin-action-btn,
    .admin-small-btn {
        width: 100%;
    }

    .empty-title {
        font-size: 24px;
    }
}
/* =========================
   WRITE PAGE HARD PATCH
========================= */

.admin-edit-form-panel .admin-edit-form {
    display: grid !important;
    gap: 16px !important;
    width: 100% !important;
}

.admin-edit-form-panel .admin-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    width: 100% !important;
    align-items: start !important;
}

.admin-edit-form-panel .admin-field {
    display: grid !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.admin-edit-form-panel .admin-field-full {
    grid-column: 1 / -1 !important;
}

.admin-edit-form-panel .admin-field label {
    display: block !important;
    margin: 0 !important;
    color: #dbeafe !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.admin-edit-form-panel .admin-field input[type="text"],
.admin-edit-form-panel .admin-field input[type="url"],
.admin-edit-form-panel .admin-field input[type="email"],
.admin-edit-form-panel .admin-field input[type="number"],
.admin-edit-form-panel .admin-field input[type="password"],
.admin-edit-form-panel .admin-field select,
.admin-edit-form-panel .admin-field textarea {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    border: 1px solid rgba(71, 85, 105, 0.56) !important;
    background: rgba(10, 15, 28, 0.94) !important;
    color: #f3f4f6 !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    font: inherit !important;
    line-height: 1.6 !important;
}

.admin-edit-form-panel .admin-field textarea {
    resize: vertical !important;
    min-height: 120px !important;
}

.admin-edit-form-panel .admin-field input[type="text"]:focus,
.admin-edit-form-panel .admin-field input[type="url"]:focus,
.admin-edit-form-panel .admin-field input[type="email"]:focus,
.admin-edit-form-panel .admin-field input[type="number"]:focus,
.admin-edit-form-panel .admin-field input[type="password"]:focus,
.admin-edit-form-panel .admin-field select:focus,
.admin-edit-form-panel .admin-field textarea:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18) !important;
}

.admin-edit-form-panel .admin-field input[type="file"] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    color: #cbd5e1 !important;
    background: rgba(10, 15, 28, 0.94) !important;
    border: 1px solid rgba(71, 85, 105, 0.56) !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    font: inherit !important;
}

.admin-edit-form-panel .admin-field input[type="file"]::file-selector-button {
    margin-right: 12px !important;
    border: 1px solid rgba(71, 85, 105, 0.56) !important;
    background: linear-gradient(180deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    font: inherit !important;
    font-weight: 700 !important;
}

.admin-edit-form-panel .admin-field input::placeholder,
.admin-edit-form-panel .admin-field textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.admin-edit-overview-panel .admin-overview-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

@media (max-width: 980px) {
    .admin-edit-form-panel .admin-form-grid,
    .admin-edit-overview-panel .admin-overview-grid {
        grid-template-columns: 1fr !important;
    }
}
/* ===== REAL DROPDOWN ===== */

.dropdown-wrap {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 12px;
    padding: 8px;
    z-index: 999;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    color: #e5e7eb;
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.15);
}
/* =========================
   HOME SEARCH / DROPDOWN BIG PATCH
========================= */

.home-search-form {
    width: 100%;
}

.home-search-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 0.8fr) auto;
    gap: 14px;
    align-items: end;
    width: 100%;
}

.home-search-grid .admin-field {
    width: 100%;
    min-width: 0;
}

.home-search-grid .admin-field label {
    display: block;
    margin-bottom: 8px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 800;
}

.home-search-grid .admin-field input {
    width: 100% !important;
    min-width: 0;
    border: 1px solid rgba(71, 85, 105, 0.56);
    background: rgba(10, 15, 28, 0.94);
    color: #f3f4f6;
    border-radius: 12px;
    padding: 14px 16px;
    outline: none;
    font: inherit;
    line-height: 1.6;
}

.home-search-grid .admin-field input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18);
}

.home-search-grid .admin-field input[disabled] {
    opacity: 1;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.92);
}

.home-search-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.home-search-actions .read-more-btn,
.home-search-actions .ghost-btn {
    min-width: 96px;
}

/* =========================
   ADMIN POST SEARCH
========================= */

.admin-post-search-form {
    width: 100%;
}

.admin-post-search-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr);
    grid-template-areas:
        "keyword status perpage"
        "actions actions actions";
    gap: 14px;
    align-items: end;
    width: 100%;
}

.admin-post-search-keyword {
    grid-area: keyword;
}

.admin-post-search-status {
    grid-area: status;
}

.admin-post-search-per-page {
    grid-area: perpage;
}

.admin-post-search-actions {
    grid-area: actions;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.admin-post-search-grid .admin-field {
    width: 100%;
    min-width: 0;
    display: block;
}

.admin-post-search-grid .admin-field label {
    display: block;
    margin-bottom: 8px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 800;
}

.admin-post-search-grid .admin-field input,
.admin-post-search-grid .admin-field select {
    width: 100% !important;
    min-width: 0;
    border: 1px solid rgba(71, 85, 105, 0.56);
    background: rgba(10, 15, 28, 0.94);
    color: #f3f4f6;
    border-radius: 12px;
    padding: 14px 16px;
    outline: none;
    font: inherit;
    line-height: 1.6;
}

.admin-post-search-grid .admin-field input:focus,
.admin-post-search-grid .admin-field select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18);
}

.admin-post-search-actions .read-more-btn,
.admin-post-search-actions .ghost-btn {
    min-width: 120px;
}

.category-dropdown-btn {
    width: 100%;
    min-height: 46px;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px !important;
    font-size: 14px !important;
}

.dropdown-wrap {
    position: relative;
    width: 100%;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 12px;
    padding: 8px;
    z-index: 999;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.dropdown-menu.open {
    display: block;
}

.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.15);
    color: #ffffff;
}

@media (max-width: 980px) {
    .home-search-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .home-search-actions {
        width: 100%;
    }

    .home-search-actions .read-more-btn,
    .home-search-actions .ghost-btn {
        width: 100%;
    }

    .admin-post-search-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "keyword"
            "status"
            "perpage"
            "actions";
        align-items: stretch;
    }

    .admin-post-search-actions {
        width: 100%;
    }

    .admin-post-search-actions .read-more-btn,
    .admin-post-search-actions .ghost-btn {
        width: 100%;
    }
}

.category-dropdown-btn {
    width: 100%;
    min-height: 46px;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px !important;
    font-size: 14px !important;
}

.dropdown-wrap {
    position: relative;
    width: 100%;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 12px;
    padding: 8px;
    z-index: 999;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.dropdown-menu.open {
    display: block;
}

.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.15);
    color: #ffffff;
}

@media (max-width: 980px) {
    .home-search-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .home-search-actions {
        width: 100%;
    }

    .home-search-actions .read-more-btn,
    .home-search-actions .ghost-btn {
        width: 100%;
    }
}
/* =========================
   CODE ROOM TOOL
========================= */

.editor-toolbox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(10, 15, 28, 0.92);
    border: 1px solid rgba(71, 85, 105, 0.34);
}

.editor-toolbox .section-sub {
    margin: 0;
}

.code-room {
    margin: 18px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(71, 85, 105, 0.42);
    background: rgba(8, 13, 24, 0.98);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.code-room-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(20, 28, 43, 0.98), rgba(11, 17, 32, 0.98));
    border-bottom: 1px solid rgba(71, 85, 105, 0.34);
}

.code-room-title {
    color: #dbeafe;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.code-room-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(71, 85, 105, 0.56);
    background: rgba(17, 24, 39, 0.86);
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.code-room-copy:hover {
    background: rgba(30, 41, 59, 0.96);
    border-color: rgba(96, 165, 250, 0.5);
    transform: translateY(-1px);
}

.code-room-copy.copied {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.36);
    color: #bbf7d0;
}

.code-room pre {
    margin: 0;
    padding: 16px 18px;
    overflow-x: auto;
    background: rgba(5, 10, 20, 0.98);
    color: #e5e7eb;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.75;
    white-space: pre;
}

.code-room code {
    font-family: inherit;
    color: inherit;
}
