/* ==========================================
   ARTIKEL.CSS — Article Pages
   show.blade.php & kategori.blade.php
   ========================================== */

/* ==========================================
   PAGE HERO / BREADCRUMB HEADER
   ========================================== */
.artikel-page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1a2a3a 100%);
    padding: 48px 0 40px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #f97316;
}

.artikel-page-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(249,115,22,0.18) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.artikel-page-hero::after {
    content: '';
    position: absolute;
    bottom: -40px; left: 10%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.artikel-page-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(249,115,22,0.15);
    border: 1px solid rgba(249,115,22,0.35);
    color: #fb923c;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.artikel-page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.artikel-page-hero .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.artikel-page-hero .hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.artikel-page-hero .hero-meta i { color: #f97316; }

/* Breadcrumb inside hero */
.artikel-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.artikel-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.artikel-breadcrumb a:hover { color: #f97316; }

.artikel-breadcrumb .sep {
    color: rgba(255,255,255,0.25);
    font-size: 0.7rem;
}

.artikel-breadcrumb .current {
    color: #f97316;
    font-weight: 600;
}

/* ==========================================
   MAIN ARTICLE LAYOUT
   ========================================== */
.artikel-main-wrap {
    background: #f8fafc;
    min-height: 60vh;
    padding: 40px 0 64px;
}

/* ==========================================
   ARTICLE CONTENT CARD (show.blade)
   ========================================== */
.artikel-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    margin-bottom: 32px;
}

.artikel-card .artikel-hero-img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

.artikel-card .artikel-body {
    padding: 36px 40px 40px;
}

.artikel-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #fed7aa;
    margin-bottom: 16px;
}

.artikel-card h1.artikel-judul {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 16px;
}

.artikel-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 28px;
    color: #64748b;
    font-size: 0.84rem;
}

.artikel-meta-row .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.artikel-meta-row .meta-item i {
    color: #f97316;
    font-size: 0.9rem;
}

.artikel-konten {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    color: #374151;
}

.artikel-konten p { margin-bottom: 1.2em; }

.artikel-konten img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ==========================================
   DIVIDER
   ========================================== */
.artikel-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 36px 0 28px;
    color: #94a3b8;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.artikel-divider::before,
.artikel-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.artikel-divider span { white-space: nowrap; }

/* ==========================================
   RELATED ARTICLES
   ========================================== */
.related-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, #f97316, #ea580c);
    border-radius: 2px;
}

.related-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: all 0.28s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: #fed7aa;
}

.related-card .related-img-wrap {
    height: 160px;
    overflow: hidden;
}

.related-card .related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover .related-img-wrap img { transform: scale(1.07); }

.related-card .no-img-placeholder {
    height: 160px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 2rem;
}

.related-card .related-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-card .related-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card .related-excerpt {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.related-card .btn-related {
    align-self: flex-start;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f97316;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.related-card .btn-related:hover { gap: 8px; color: #ea580c; }

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    margin-bottom: 24px;
    border: 1px solid #f1f5f9;
}

.sidebar-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.sidebar-header i { color: #f97316; font-size: 1rem; }

.sidebar-header h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sidebar-cat-list { padding: 8px 0; }

.sidebar-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 20px;
    text-decoration: none;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 500;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.2s ease;
}

.sidebar-cat-item:hover {
    background: #fff7ed;
    color: #f97316;
    padding-left: 26px;
}

.sidebar-cat-item .cat-arrow {
    color: #cbd5e1;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.sidebar-cat-item:hover .cat-arrow {
    color: #f97316;
    transform: translateX(3px);
}

/* ==========================================
   KATEGORI PAGE
   ========================================== */
.kategori-wrap {
    background: #f8fafc;
    min-height: 60vh;
    padding: 40px 0 64px;
}

.kategori-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.07);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.kategori-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.11);
    border-color: #fed7aa;
}

.kategori-card .kat-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.kategori-card .kat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.kategori-card:hover .kat-img-wrap img { transform: scale(1.06); }

.kategori-card .kat-no-img {
    height: 200px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.25);
    font-size: 2.5rem;
}

.kategori-card .kat-date-ribbon {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    padding: 18px 14px 10px;
    color: rgba(255,255,255,0.85);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.kategori-card .kat-date-ribbon i { color: #f97316; }

.kategori-card .kat-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kategori-card .kat-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kategori-card .kat-excerpt {
    font-size: 0.83rem;
    color: #64748b;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 18px;
}

.kategori-card .btn-kat-read {
    align-self: flex-start;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(249,115,22,0.28);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.kategori-card .btn-kat-read:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    transform: translateX(3px);
    box-shadow: 0 5px 14px rgba(249,115,22,0.38);
    color: white;
}

/* ==========================================
   EMPTY STATE
   ========================================== */
.artikel-empty {
    text-align: center;
    padding: 64px 20px;
}

.artikel-empty i {
    font-size: 3.5rem;
    margin-bottom: 18px;
    color: #e2e8f0;
    display: block;
}

.artikel-empty p {
    font-size: 1rem;
    color: #64748b;
}

/* ==========================================
   PAGINATION FIX — Laravel 12 Tailwind
   Hilangkan SVG < > prev/next, styling nomor
   ========================================== */

/* 1. Bunuh semua SVG di dalam nav pagination */
nav[role="navigation"] svg {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* 2. Sembunyikan baris "Showing X to Y of Z results" */
nav[role="navigation"] > div:first-child {
    display: none !important;
}

/* 3. Sembunyikan link Previous dan Next */
nav[role="navigation"] a[rel="prev"],
nav[role="navigation"] a[rel="next"] {
    display: none !important;
}

/* 4. Tengahkan wrapper nomor halaman */
nav[role="navigation"] > div:last-child {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
}

/* 5. Style link nomor halaman */
nav[role="navigation"] a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    color: #1e293b;
    background: #ffffff;
}

nav[role="navigation"] a:hover {
    background: #fff7ed;
    border-color: #f97316;
    color: #f97316;
}

/* 6. Halaman aktif */
nav[role="navigation"] span[aria-current="page"] > span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: 1px solid #f97316;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(249,115,22,0.35);
}

/* 7. Titik "..." */
nav[role="navigation"] span:not([aria-current]) > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991px) {
    .artikel-card .artikel-body { padding: 24px 24px 28px; }
    .artikel-card h1.artikel-judul { font-size: 1.5rem; }
}

@media (max-width: 767px) {
    .artikel-page-hero { padding: 32px 0 28px; }
    .artikel-page-hero h1 { font-size: 1.3rem; }
    .artikel-card .artikel-body { padding: 18px 18px 22px; }
    .artikel-card h1.artikel-judul { font-size: 1.2rem; }
    .artikel-konten { font-size: 0.93rem; }
    .kategori-card .kat-img-wrap,
    .kategori-card .kat-no-img { height: 170px; }
    .related-card .related-img-wrap,
    .related-card .no-img-placeholder { height: 130px; }
}

@media (max-width: 576px) {
    .artikel-meta-row { gap: 12px; font-size: 0.78rem; }
    .artikel-card .artikel-body { padding: 14px 14px 18px; }
    .artikel-card .artikel-hero-img { max-height: 220px; }
}

/* ==========================================
   SEARCH BAR
   ========================================== */
.kat-search-wrap {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.kat-search-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 6px 0 16px;
    gap: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    max-width: 640px;
    margin: 0 auto;
}

.kat-search-box:focus-within {
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249,115,22,0.12);
    background: #fff;
}

.kat-search-icon {
    color: #94a3b8;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.kat-search-box:focus-within .kat-search-icon { color: #f97316; }

.kat-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 0.92rem;
    color: #1e293b;
    outline: none;
    min-width: 0;
}

.kat-search-input::placeholder { color: #94a3b8; }

.kat-search-clear {
    color: #94a3b8;
    padding: 6px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.kat-search-clear:hover { color: #ef4444; background: #fef2f2; }

.kat-search-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.kat-search-btn:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    box-shadow: 0 4px 12px rgba(249,115,22,0.35);
}

.kat-search-info {
    text-align: center;
    margin-top: 10px;
    font-size: 0.83rem;
    color: #64748b;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.kat-search-info strong { color: #f97316; }

/* ==========================================
   RESPONSIVE — 2 kolom di mobile/tablet
   ========================================== */
/* col-6 = 2 kolom default (Bootstrap), col-lg-4 = 3 kolom di desktop */

@media (max-width: 575px) {
    .kategori-card .kat-title    { font-size: 0.82rem; -webkit-line-clamp: 2; }
    .kategori-card .kat-excerpt  { display: none; } /* sembunyikan excerpt di HP kecil */
    .kategori-card .kat-img-wrap,
    .kategori-card .kat-no-img   { height: 130px; }
    .kategori-card .kat-body     { padding: 12px 12px 14px; }
    .btn-kat-read                { padding: 6px 12px; font-size: 0.72rem; }
    .kat-search-btn              { padding: 9px 12px; font-size: 0.78rem; }
}