/* public/css/pages.css */
/* Gaming blog/policy layout: header + breadcrumb + 2-column balanced (no big whitespace) */

.pages-wrap {
    --g-bg: #0b1020;
    --g-bg2: #090d18;
    --g-surface: rgba(255, 255, 255, .06);
    --g-surface2: rgba(255, 255, 255, .045);
    --g-border: rgba(255, 255, 255, .10);
    --g-text: #eaf0ff;
    --g-muted: #aab6d6;

    --g-primary: #6d5cff;
    --g-cyan: #26d0ff;
    --g-green: #22c55e;
    --g-red: #ff4d6d;
    --g-yellow: #ffb020;

    --g-radius: 16px;
    --g-radius-sm: 14px;
    --g-shadow: 0 16px 40px rgba(0, 0, 0, .38);
    --g-shadow-soft: 0 12px 28px rgba(0, 0, 0, .35);

    background:
        radial-gradient(1100px 750px at 18% 10%, rgba(109, 92, 255, .16), transparent 58%),
        radial-gradient(1000px 700px at 85% 14%, rgba(38, 208, 255, .12), transparent 62%),
        linear-gradient(180deg, var(--g-bg), var(--g-bg2));
    color: var(--g-text);
    min-height: 100vh;
}

/* Container tuning */
.pages-wrap .container {
    max-width: 1220px;
    padding-left: 32px;
    padding-right: 32px;
}

@media (max-width: 575.98px) {
    .pages-wrap .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* ===== Top header like blog category ===== */
.pages-top {
    padding: 22px 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
    position: relative;
    overflow: hidden;
}

.pages-top::after {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(800px 220px at 15% 0%, rgba(109, 92, 255, .16), transparent 60%),
        radial-gradient(700px 220px at 85% 10%, rgba(38, 208, 255, .12), transparent 60%);
    pointer-events: none;
    opacity: .9;
}

.pages-top__row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pages-top__title {
    margin: 0;
    font-weight: 900;
    letter-spacing: .2px;
    font-size: clamp(22px, 2.2vw, 34px);
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 0 20px rgba(38, 208, 255, 0.5), 0 0 40px rgba(241, 241, 244, 0.3);
}

/* Breadcrumb */
.pages-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--g-muted);
    white-space: nowrap;
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pages-breadcrumb a {
    color: var(--g-muted);
    text-decoration: none;
}

.pages-breadcrumb a:hover {
    color: var(--g-cyan);
    text-decoration: underline;
}

.pages-breadcrumb .sep {
    opacity: .6;
}

@media (max-width: 991.98px) {
    .pages-breadcrumb {
        display: none;
    }
}

/* ===== Main layout to avoid large whitespace ===== */
.pages-body {
    padding: 14px 0 26px;
}

/* Two-column grid: main + sidebar + centered width */
@media (max-width: 1199.98px) {
    .pg-layout {
        max-width: 900px;
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 20px;
    }
}

@media (max-width: 1199.98px) {
    .pg-layout {
        max-width: 980px;
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 991.98px) {
    .pg-layout {
        max-width: 720px;
        grid-template-columns: 1fr;
    }
}

/* ===== Cards (gaming glass) ===== */
.pg-card {
    background: linear-gradient(180deg, var(--g-surface), var(--g-surface2));
    border: 1px solid var(--g-border);
    border-radius: var(--g-radius);
    box-shadow: var(--g-shadow);
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

.pg-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--g-primary), var(--g-cyan));
    opacity: .9;
}

.pg-card__body {
    position: relative;
    padding: 16px 16px;
}

@media(min-width:768px) {
    .pg-card__body {
        padding: 18px 18px;
    }
}

/* ===== Article header inside main content ===== */
.article-title {
    margin: 0 0 8px 0;
    font-weight: 900;
    letter-spacing: .2px;
    font-size: clamp(20px, 2.2vw, 30px);
    color: #fff;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    color: var(--g-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.article-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
}

.article-meta i {
    color: rgba(255, 77, 109, .95);
}

/* ===== Cover image ===== */
.article-cover {
    margin: 10px 0 14px;
    border-radius: var(--g-radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Content typography ===== */
.article-content {
    color: rgba(234, 240, 255, .92);
    line-height: 1.85;
    font-size: 15px;
}

.article-content h5,
.article-content h2,
.article-content h3 {
    color: #fff;
    font-weight: 900;
    margin: 14px 0 8px;
    letter-spacing: .15px;
}

.article-content p {
    margin: 0 0 12px;
    color: rgba(234, 240, 255, .90);
}

.article-content ul,
.article-content ol {
    padding-left: 1.15rem;
    margin: 0 0 12px;
}

.article-content li {
    margin: 7px 0;
    color: rgba(234, 240, 255, .90);
}

.article-content ol li::marker {
    color: rgba(38, 208, 255, .95);
    font-weight: 900;
}

.article-content ul li::marker {
    color: rgba(109, 92, 255, .95);
}

.article-content hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
    margin: 16px 0;
}

/* ===== Note / alert ===== */
.note {
    border: 1px solid rgba(38, 208, 255, .28);
    background: linear-gradient(180deg, rgba(38, 208, 255, .10), rgba(255, 255, 255, .03));
    border-radius: var(--g-radius-sm);
    padding: 10px 12px;
    color: rgba(234, 240, 255, .92);
    box-shadow: var(--g-shadow-soft);
    margin: 0 0 12px;
}

.note b {
    font-weight: 900;
}

/* ===== Sidebar blocks ===== */
aside.pg-card {
    position: sticky;
    top: 90px;
    align-self: start;
}

.sidebar-title {
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 12px;
    font-size: 13px;
    color: rgba(234, 240, 255, .80);
}

.side-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-item {
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
    border-radius: 14px;
    padding: 10px 12px;
}

.side-item .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--g-muted);
}

.side-item .value {
    margin-top: 4px;
    font-weight: 900;
    font-size: 14px;
    color: rgba(234, 240, 255, .95);
}

.side-item a {
    color: rgba(38, 208, 255, .95);
    text-decoration: none;
}

.side-item a:hover {
    text-decoration: underline;
}

/* ===== Social (reuse your classes) ===== */
.footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.social__link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    box-shadow: var(--g-shadow-soft);
    color: rgba(234, 240, 255, .95);
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.social__link:hover {
    transform: translateY(-2px);
    border-color: rgba(38, 208, 255, .35);
    box-shadow: var(--g-shadow-soft), 0 0 0 1px rgba(38, 208, 255, .18);
    color: rgba(38, 208, 255, .95);
}