/* =========================================================
   BESTBROKER.ID - PUBLIC ARTICLE
   Premium Dark Blue Theme
========================================================= */

:root {
    --article-bg: #020617;
    --article-bg-soft: #07111f;
    --article-card: rgba(15, 23, 42, 0.86);
    --article-card-hover: rgba(15, 23, 42, 1);

    --article-blue: #2563eb;
    --article-blue-light: #38bdf8;
    --article-blue-soft: rgba(37, 99, 235, 0.12);

    --article-text: #f8fafc;
    --article-muted: #94a3b8;
    --article-border: rgba(148, 163, 184, 0.14);

    --article-radius: 20px;
    --article-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25);
}

body {
    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.09),
            transparent 30%
        ),
        var(--article-bg);
}

/* =========================================================
   CONTAINER
========================================================= */

.article-container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

/* =========================================================
   ARTICLE HERO
========================================================= */

.article-hero {
    position: relative;
    overflow: hidden;
    padding: 85px 0 70px;
    border-bottom: 1px solid var(--article-border);
}

.article-hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: -280px;
    right: -120px;

    background: rgba(37, 99, 235, 0.14);
    filter: blur(100px);
    border-radius: 50%;

    pointer-events: none;
}

.article-hero-content {
    position: relative;
    max-width: 760px;
    z-index: 2;
}

.article-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;
    margin-bottom: 20px;

    color: #93c5fd;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.article-hero h1 {
    margin: 0 0 18px;

    color: var(--article-text);

    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.05;
    letter-spacing: -2.5px;
}

.article-hero h1 span {
    background:
        linear-gradient(
            135deg,
            #60a5fa,
            #22d3ee
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-hero p {
    max-width: 690px;
    margin: 0;

    color: var(--article-muted);

    font-size: 18px;
    line-height: 1.75;
}

/* =========================================================
   SECTION
========================================================= */

.article-section {
    padding: 70px 0 100px;
}

.article-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 30px;
}

.article-section-header h2 {
    margin: 0;

    color: var(--article-text);

    font-size: 30px;
    letter-spacing: -0.8px;
}

.article-section-header p {
    margin: 7px 0 0;

    color: var(--article-muted);

    line-height: 1.6;
}

/* =========================================================
   ARTICLE GRID
========================================================= */

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* =========================================================
   ARTICLE CARD
========================================================= */

.article-card {
    position: relative;
    display: flex;
    flex-direction: column;

    min-width: 0;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, 0.95),
            rgba(7, 17, 31, 0.98)
        );

    border: 1px solid var(--article-border);
    border-radius: var(--article-radius);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.article-card:hover {
    transform: translateY(-7px);

    border-color: rgba(59, 130, 246, 0.35);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(37, 99, 235, 0.06);
}

.article-card-image {
    position: relative;
    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #172554
        );
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.4s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.04);
}

.article-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background:
        radial-gradient(
            circle at top right,
            rgba(56, 189, 248, 0.18),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #0f172a,
            #172554
        );

    color: rgba(255, 255, 255, 0.14);

    font-size: 54px;
    font-weight: 900;
}

.article-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 24px;
}

.article-category {
    display: inline-flex;
    align-self: flex-start;

    margin-bottom: 14px;
    padding: 7px 11px;

    color: #93c5fd;
    background: var(--article-blue-soft);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}

.article-card-title {
    margin: 0 0 13px;

    color: var(--article-text);

    font-size: 21px;
    line-height: 1.38;
    letter-spacing: -0.35px;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
}

.article-card-title a:hover {
    color: #93c5fd;
}

.article-card-excerpt {
    margin: 0 0 22px;

    color: var(--article-muted);

    font-size: 14px;
    line-height: 1.75;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-top: auto;
    padding-top: 18px;

    border-top: 1px solid var(--article-border);
}

.article-card-date {
    color: #64748b;
    font-size: 12px;
}

.article-read-more {
    color: #60a5fa;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.article-read-more:hover {
    color: #bae6fd;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.article-empty {
    grid-column: 1 / -1;

    padding: 70px 30px;

    text-align: center;

    background: var(--article-card);
    border: 1px solid var(--article-border);
    border-radius: var(--article-radius);
}

.article-empty-icon {
    margin-bottom: 15px;
    font-size: 45px;
}

.article-empty h3 {
    margin: 0 0 10px;
    color: var(--article-text);
}

.article-empty p {
    margin: 0;
    color: var(--article-muted);
}

/* =========================================================
   PAGINATION
========================================================= */

.article-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 45px;
}

.article-pagination a,
.article-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;
    padding: 0 13px;

    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--article-border);
    border-radius: 11px;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.article-pagination a:hover {
    border-color: rgba(59, 130, 246, 0.5);
    color: #ffffff;
}

.article-pagination .active {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    border-color: transparent;
}

/* =========================================================
   DETAIL ARTICLE
========================================================= */

.article-detail-wrapper {
    padding: 60px 0 100px;
}

.article-detail-header {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.article-detail-category {
    display: inline-flex;

    margin-bottom: 20px;
    padding: 8px 14px;

    color: #93c5fd;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
}

.article-detail-title {
    margin: 0 auto 22px;

    color: var(--article-text);

    font-size: clamp(36px, 5.5vw, 64px);
    line-height: 1.08;
    letter-spacing: -2px;
}

.article-detail-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;

    color: var(--article-muted);

    font-size: 13px;
}

.article-detail-image {
    max-width: 1080px;
    margin: 0 auto 50px;

    overflow: hidden;

    background: #0f172a;
    border: 1px solid var(--article-border);
    border-radius: 24px;

    box-shadow: var(--article-shadow);
}

.article-detail-image img {
    display: block;

    width: 100%;
    max-height: 620px;

    object-fit: cover;
}

/* =========================================================
   ARTICLE CONTENT
========================================================= */

.article-content {
    max-width: 820px;
    margin: 0 auto;

    color: #cbd5e1;

    font-size: 17px;
    line-height: 1.9;
}

.article-content p {
    margin: 0 0 24px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #f8fafc;
    line-height: 1.3;
}

.article-content h2 {
    margin: 48px 0 20px;
    font-size: 30px;
}

.article-content h3 {
    margin: 38px 0 18px;
    font-size: 24px;
}

.article-content h4 {
    margin: 30px 0 15px;
    font-size: 20px;
}

.article-content a {
    color: #60a5fa;
}

.article-content strong {
    color: #f8fafc;
}

.article-content img {
    max-width: 100%;
    height: auto;

    margin: 28px 0;

    border-radius: 16px;
}

.article-content ul,
.article-content ol {
    padding-left: 25px;
    margin: 0 0 25px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    margin: 32px 0;
    padding: 22px 25px;

    color: #cbd5e1;
    background: rgba(37, 99, 235, 0.08);
    border-left: 4px solid #3b82f6;
    border-radius: 0 14px 14px 0;
}

.article-content table {
    width: 100%;
    margin: 30px 0;

    border-collapse: collapse;
}

.article-content th,
.article-content td {
    padding: 13px 15px;

    border: 1px solid var(--article-border);
    text-align: left;
}

.article-content th {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.12);
}

/* =========================================================
   TAGS
========================================================= */

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;

    max-width: 820px;

    margin: 45px auto 0;
    padding-top: 30px;

    border-top: 1px solid var(--article-border);
}

.article-tags-label {
    margin-right: 5px;

    color: var(--article-muted);

    font-size: 13px;
    font-weight: 700;
}

.article-tag {
    padding: 7px 11px;

    color: #94a3b8;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--article-border);
    border-radius: 999px;

    font-size: 12px;
}

/* =========================================================
   BACK BUTTON
========================================================= */

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 30px;

    color: #94a3b8;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.article-back:hover {
    color: #ffffff;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 680px) {

    .article-container {
        width: min(100% - 28px, 1180px);
    }

    .article-hero {
        padding: 60px 0 50px;
    }

    .article-hero h1 {
        letter-spacing: -1.5px;
    }

    .article-hero p {
        font-size: 16px;
    }

    .article-section {
        padding: 50px 0 75px;
    }

    .article-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-detail-wrapper {
        padding: 40px 0 75px;
    }

    .article-detail-header {
        text-align: left;
    }

    .article-detail-meta {
        justify-content: flex-start;
    }

    .article-detail-title {
        letter-spacing: -1.2px;
    }

    .article-detail-image {
        margin-bottom: 35px;
        border-radius: 16px;
    }

    .article-content {
        font-size: 16px;
        line-height: 1.85;
    }

    .article-content h2 {
        font-size: 26px;
    }

}