/* ============================================
   ZNRNETWORK BLOG - Phase 3 Styles
   ============================================ */

:root {
    --gold: #d4af37;
    --gold-dark: #b8962e;
    --gold-light: #fef3c7;
    --text-dark: #1a1a1a;
    --text-body: #333;
    --text-muted: #666;
    --text-light: #888;
    --bg: #fafafa;
    --card-bg: #fff;
    --border: #eee;
    --success: #22c55e;
    --danger: #dc2626;
    --whatsapp: #25D366;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Header ── */
.blog-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.blog-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
}

.blog-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
}

.blog-logo-text {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.blog-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.blog-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color 0.2s;
}

.blog-nav a:hover { color: var(--gold); }

/* ── Hero ── */
.blog-hero {
    padding: 40px 0 30px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.blog-hero h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.blog-hero p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.blog-search {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.blog-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--card-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-search input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

.blog-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ── Category Filter ── */
.category-filter {
    padding: 16px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

.category-pills {
    display: flex;
    gap: 8px;
    min-width: max-content;
}

.category-pill {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.category-pill:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.category-pill.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

/* ── Articles Grid ── */
.articles-section {
    padding: 10px 0 30px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.article-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.article-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: linear-gradient(135deg, var(--gold-light), #f3e8ff);
    display: block;
}

.article-card-body {
    padding: 12px;
}

.article-card-category {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.625rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

.article-card-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-excerpt {
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.625rem;
    color: var(--text-light);
}

.article-card-meta i { font-size: 0.625rem; }

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ── Load More ── */
.load-more-wrap {
    text-align: center;
    padding: 20px 0;
}

.btn-load-more {
    padding: 10px 28px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-load-more:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ── Siapa Kami Box ── */
.siapa-kami-box {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 16px;
    padding: 28px 24px;
    margin: 48px 0 20px;
    text-align: center;
    color: #fff;
}

.siapa-kami-box .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.siapa-kami-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.siapa-kami-box .subtitle {
    font-size: 0.75rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.siapa-kami-box p {
    font-size: 0.8125rem;
    color: #ccc;
    margin-bottom: 16px;
    line-height: 1.5;
}

.siapa-kami-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.siapa-kami-links a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.siapa-kami-links .link-primary {
    background: var(--gold);
    color: #1a1a1a;
}

.siapa-kami-links .link-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ── Footer ── */
.blog-footer {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.blog-footer p {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.8;
}

.blog-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.blog-footer a:hover { text-decoration: underline; }

/* ── Floating Blog Button ── */
.float-blog {
    position: fixed;
    right: 14px;
    bottom: 130px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    box-shadow: 0 4px 16px rgba(212,175,55,0.4);
    z-index: 99;
    transition: all 0.3s;
    text-decoration: none;
    overflow: hidden;
}

.float-blog:hover {
    width: auto;
    padding: 0 16px;
    gap: 6px;
}

.float-blog span {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.float-blog:hover span { opacity: 1; }

/* ============================================
   ARTICLE PAGE
   ============================================ */

.article-hero-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--gold-light), #f3e8ff);
}

/* ── Hero Poster Placeholder ── */
.article-hero-poster {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 24px;
}

.article-hero-poster .poster-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.article-hero-poster .poster-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.article-hero-poster .poster-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.article-hero-poster .poster-category {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
}

.article-hero-poster .poster-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    max-width: 500px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.article-hero-poster .poster-brand {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.article-meta .category-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #fff;
}

.article-meta .read-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.article-meta .read-time i { margin-right: 4px; }

.article-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.article-date {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* ── CTA Compact Inline Card ── */
.cta-inline {
    max-width: 620px;
    margin: 32px auto;
    padding: 16px 20px;
    background: #faf7f0;
    border: 1px solid #ebe3d0;
    border-radius: 12px;
    text-align: left;
    color: #374151;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cta-inline h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #1f2937;
    line-height: 1.3;
}

.cta-inline p {
    font-size: 0.875rem;
    margin-bottom: 4px;
    color: #4b5563;
    line-height: 1.5;
}

.cta-inline .cta-inline-btns {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 4px;
}

.cta-inline .cta-inline-btn {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.cta-inline .cta-btn-primary {
    background: #d4af37;
    color: #1a1a1a;
}

.cta-inline .cta-btn-primary:hover {
    background: #c9a430;
}

.cta-inline .cta-btn-secondary {
    background: #fff;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.cta-inline .cta-btn-secondary:hover {
    background: #f9fafb;
    color: #374151;
}

/* Legacy CTA box */
.cta-box {
    max-width: 620px;
    margin: 42px auto;
    padding: 14px 18px;
    background: #faf7f0;
    border: 1px solid #ebe3d0;
    border-radius: 14px;
    text-align: center;
    color: #374151;
}

.cta-box .cta-emoji { display: none; }

.cta-box h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: #1f2937;
}

.cta-box p {
    font-size: 0.8125rem;
    margin-bottom: 10px;
    color: #6b7280;
}

.cta-box .cta-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-box .cta-btn {
    height: 34px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.cta-box .cta-btn-primary {
    background: #d4af37;
    color: #1a1a1a;
}

.cta-box .cta-btn-secondary {
    background: #fff;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* ── Article Content ── */
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
    padding: 10px 0 30px;
    max-width: 720px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .article-content {
        font-size: 16px;
    }
}

.article-content h2 {
    font-size: 1.625rem;
    font-weight: 700;
    color: #111827;
    margin: 48px 0 18px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 32px 0 12px;
    line-height: 1.3;
}

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

.article-content strong {
    color: #1f2937;
    font-weight: 600;
}

.article-content em {
    color: #4b5563;
}

.article-content blockquote {
    border-left: 3px solid #d4af37;
    padding: 14px 18px;
    margin: 24px 0;
    background: #faf7f0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.article-content ul, .article-content ol {
    margin: 16px 0 20px 24px;
    padding-left: 0;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-content a {
    color: #92400e;
    text-decoration: underline;
    text-decoration-color: #d4af37;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.article-content a:hover {
    color: #78350f;
}

.article-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
    color: #374151;
}

.article-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 32px 0;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

.article-content .image-caption {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: -14px;
    margin-bottom: 20px;
}

/* ── Related Articles ── */
.related-section {
    padding: 30px 0;
    border-top: 1px solid var(--border);
}

.related-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* ============================================
   ADMIN BLOG PAGE
   ============================================ */

.admin-blog-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: #0f0f0f;
    color: #fff;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 12px;
}

.admin-sidebar-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.admin-sidebar-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8125rem;
}

.admin-sidebar-logo .logo-text {
    font-weight: 700;
    font-size: 0.9375rem;
}

.admin-sidebar-logo .logo-sub {
    font-size: 0.6875rem;
    color: #888;
}

.sidebar-nav { padding: 0 12px; }

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.sidebar-nav-item:hover { background: #1a1a1a; color: #fff; }
.sidebar-nav-item.active { background: var(--gold); color: #1a1a1a; font-weight: 600; }
.sidebar-nav-item i { width: 18px; text-align: center; }

.sidebar-divider {
    height: 1px;
    background: #333;
    margin: 12px 20px;
}

.admin-main {
    flex: 1;
    margin-left: 240px;
    padding: 20px;
    background: #f5f5f5;
    min-height: 100vh;
}

/* ── Admin Header ── */
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.admin-page-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.admin-page-header .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-page-header .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a1a1a;
}

.admin-page-header .user-name {
    font-size: 0.8125rem;
    font-weight: 600;
}

.btn-logout {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-logout:hover { border-color: var(--danger); color: var(--danger); }

/* ── Stats Cards ── */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.stat-card .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 0.875rem;
}

.stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-card .stat-label {
    font-size: 0.6875rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* ── Admin Toolbar ── */
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-toolbar .toolbar-left {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: var(--gold);
    color: #1a1a1a;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.btn-primary:hover { background: var(--gold-dark); }

.btn-secondary {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.admin-search {
    position: relative;
}

.admin-search input {
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8125rem;
    width: 220px;
    font-family: inherit;
    background: #fff;
}

.admin-search input:focus {
    outline: none;
    border-color: var(--gold);
}

.admin-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.75rem;
}

/* ── Tab Filters ── */
.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.admin-tab {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.admin-tab:hover { color: var(--text-dark); }
.admin-tab.active { background: var(--gold); color: #1a1a1a; font-weight: 600; }

/* ── Articles Table ── */
.admin-table-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}

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

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}

.admin-table td {
    padding: 12px 16px;
    font-size: 0.8125rem;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}

.admin-table tr:hover td { background: #fafafa; }

.admin-table .title-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-table .title-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--gold-light);
    flex-shrink: 0;
}

.admin-table .title-text {
    font-weight: 600;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-table .title-slug {
    font-size: 0.6875rem;
    color: var(--text-light);
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.status-badge.published { background: #dcfce7; color: #166534; }
.status-badge.draft { background: #fef9c3; color: #854d0e; }
.status-badge.archived { background: #f3f4f6; color: #6b7280; }

.action-btns {
    display: flex;
    gap: 6px;
}

.action-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.action-btn:hover { border-color: var(--gold); color: var(--gold); }
.action-btn.danger:hover { border-color: var(--danger); color: var(--danger); }

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
}

.modal-overlay.show { display: flex; }

.modal-card {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1rem;
    font-weight: 700;
}

.modal-close {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.modal-close:hover { background: #fee2e2; color: var(--danger); }

.modal-body { padding: 20px; }

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

/* ── Form Fields ── */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-group .char-count {
    font-size: 0.6875rem;
    color: var(--text-light);
    text-align: right;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 0 8px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

/* ── Image Upload ── */
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.image-upload-area:hover {
    border-color: var(--gold);
    background: var(--gold-light);
}

.image-upload-area i {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.image-upload-area p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.image-upload-area .small {
    font-size: 0.6875rem;
    color: var(--text-light);
    margin-top: 4px;
}

.image-preview {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.or-divider {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 12px 0;
    position: relative;
}

.or-divider::before,
.or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}

.or-divider::before { left: 0; }
.or-divider::after { right: 0; }

/* ── AI Generate Panel ── */
.ai-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.ai-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ai-panel-header i {
    color: var(--gold);
    font-size: 1rem;
}

.ai-panel-header h3 {
    font-size: 0.875rem;
    font-weight: 700;
}

.ai-panel .ai-note {
    font-size: 0.6875rem;
    color: var(--text-light);
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #fef3c7;
    border-radius: 8px;
    color: #92400e;
}

.btn-ai-generate {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.btn-ai-generate:hover { opacity: 0.9; transform: scale(1.01); }

.btn-ai-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── Settings Panel ── */
.settings-section {
    margin-bottom: 20px;
}

.settings-section h3 {
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* ── Toast Notification ── */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    z-index: 300;
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.toast.success { background: #166534; color: #fff; }
.toast.error { background: #dc2626; color: #fff; }
.toast.info { background: #1e40af; color: #fff; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Login Overlay ── */
.login-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    text-align: center;
    padding: 40px;
    max-width: 360px;
}

.login-card .logo-big {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.login-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.btn-google-login {
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-google-login:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        left: -240px;
        transition: left 0.3s;
    }

    .admin-sidebar.open { left: 0; }

    .admin-main {
        margin-left: 0;
    }

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

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

    .admin-toolbar .toolbar-left {
        justify-content: center;
    }

    .admin-search input { width: 100%; }

    .admin-table-wrap { overflow-x: auto; }
    .admin-table { min-width: 600px; }

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

    .modal-card { max-width: 100%; }
    .modal-overlay { padding: 20px 10px; }

    .mobile-menu-btn {
        display: flex !important;
    }
}

.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
}

/* ── Loading Spinner ── */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Skeleton Loading ── */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

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

/* ── Article Page Container ── */
.article-page-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Article Hero Responsive ── */
@media (min-width: 769px) {
    .article-title {
        font-size: 1.75rem;
    }

    .article-content {
        font-size: 1.125rem;
    }

    .article-content h2 {
        font-size: 1.625rem;
    }

    .article-hero-poster .poster-title {
        font-size: 1.5rem;
    }

    .article-hero-poster .poster-icon {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .article-hero-poster {
        aspect-ratio: 16/10;
        padding: 20px 16px;
    }

    .article-hero-poster .poster-title {
        font-size: 1rem;
    }

    .article-hero-poster .poster-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .cta-inline,
    .cta-box {
        max-width: 100%;
        margin: 32px auto;
        padding: 12px 16px;
    }

    .cta-inline h4,
    .cta-box h3 {
        font-size: 0.875rem;
    }

    .cta-inline p,
    .cta-box p {
        font-size: 0.75rem;
    }

    .cta-inline .cta-inline-btn,
    .cta-box .cta-btn {
        height: 32px;
        font-size: 0.6875rem;
        padding: 0 12px;
    }

    .cta-box .cta-buttons,
    .cta-inline .cta-inline-btns {
        flex-direction: column;
    }

    .cta-box .cta-btn,
    .cta-inline .cta-inline-btn {
        width: 100%;
        min-width: unset;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.375rem;
        margin-top: 36px;
    }

    .article-content h3 {
        font-size: 1.125rem;
    }
}
