/*
Theme Name: Retro Game Emulator
Theme URI: https://retrogame-emulator.com/
Author: Retro Game Emulator
Author URI: https://retrogame-emulator.com/
Description: Custom WordPress theme for retrogame-emulator.com. Replicates the original static landing page and adds blog, category, page and 404 templates. Blog articles include configurable top/bottom store banners.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: retrogame-emulator
Tags: blog, landing-page, custom-menu, custom-logo, featured-images, threaded-comments
*/

/* ==========================================================================
   Theme-specific overrides (loaded on top of css.min.css bundle).
   The bundle ships the entire original landing-page styles, so this file
   only adjusts WordPress-specific elements (admin bar offset, blog layout,
   article banners, 404, pagination, etc.).
   ========================================================================== */

/* Fix admin bar overlapping fixed navbar */
.admin-bar .navigation.fixed-top { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .navigation.fixed-top { top: 46px; }
}

/* ============================================================
   Navbar background — dark purple by default on inner pages
   (article, archive, category, page, 404, search). Same color
   the original site uses for the scrolled state (#29003D), so
   the menu is visible from the first paint. Front page keeps
   its original behaviour.
   ============================================================ */
html body:not(.home) nav.navbar.navigation.fixed-top,
html body:not(.home) nav.navigation.fixed-top.main-nav,
html body:not(.home) .navigation.fixed-top {
    background: #29003D !important;
    background-color: #29003D !important;
    box-shadow: 0 4px 18px rgba(41, 0, 61, .35) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .06) !important;
}
html body:not(.home) .main-nav .nav-link,
html body:not(.home) .main-nav .navbar-brand,
html body:not(.home) .navigation .nav-link,
html body:not(.home) .navigation .dropdown-toggle {
    color: #ffffff !important;
}
html body:not(.home) .main-nav .nav-link:hover,
html body:not(.home) .main-nav .nav-link:focus,
html body:not(.home) .navigation .nav-link:hover {
    color: #d4a8ff !important;
}
html body:not(.home) .navigation .navbar-toggler .icon-bar {
    background-color: #ffffff !important;
}

/* ============================================================
   Mobile navigation — drops DOWN from the top (not a sidebar).
   The bundled css.min.css forces .navigation .collapse to be
   `display: block; position: fixed; width: 250px; top: 0;
   bottom: 0` (legacy sidebar mode) — we have to override every
   one of those rules so Bootstrap's normal collapse can hide
   the menu until the toggler is clicked.
   ============================================================ */
@media (max-width: 767.98px) {
    html body .navbar.navigation.fixed-top {
        background: #29003D !important;
        background-color: #29003D !important;
    }
    /* Hidden by default — restore Bootstrap collapse behaviour */
    html body .navbar.navigation .navbar-collapse,
    html body .navbar.navigation .collapse:not(.show) {
        display: none !important;
    }
    /* Show when Bootstrap JS adds .show */
    html body .navbar.navigation .navbar-collapse.show,
    html body .navbar.navigation .collapse.show {
        display: block !important;
    }
    /* Open menu styling — solid panel under the navbar */
    html body .navbar.navigation .navbar-collapse,
    html body .navbar.navigation .collapse {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
        background: #29003D !important;
        background-color: #29003D !important;
        margin: 12px 0 0 0 !important;
        padding: 6px 8px 14px !important;
        border-radius: 0 0 16px 16px !important;
        border: none !important;
        box-shadow: 0 14px 30px rgba(0, 0, 0, .35) !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transition: none !important;
    }
    /* Hide the duplicated brand block that the original sidebar layout used */
    html body .navbar .navbar-collapse .sidebar-brand {
        display: none !important;
    }
    /* Menu list */
    html body .navbar .navbar-collapse .navbar-nav {
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
    }
    html body .navbar .navbar-collapse .nav-item {
        display: block;
        width: 100%;
    }
    /* Links — always white on this dark background */
    html body .navbar .navbar-collapse .nav-link,
    html body .navbar .navbar-collapse .nav-link:visited {
        color: #ffffff !important;
        padding: 14px 18px !important;
        font-weight: 600;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        display: block;
        text-align: left;
    }
    html body .navbar .navbar-collapse .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    html body .navbar .navbar-collapse .nav-link:hover,
    html body .navbar .navbar-collapse .nav-link:focus {
        color: #d4a8ff !important;
        background: rgba(255, 255, 255, .04);
    }
    /* Toggler — clean hamburger that animates into ✕ on open.
       Uses brand-new .rge-bar class so the bundled `.icon-bar`
       rule (background: #B931FB) cannot reach us. All native
       button chrome is wiped to avoid stray iOS tap-highlight
       squares and pseudo-element leftovers from the bundle. */
    html body .navbar .navbar-toggler.rge-toggler {
        background: rgba(255, 255, 255, .12) !important;
        background-image: none !important;
        border: 1px solid rgba(255, 255, 255, .30) !important;
        border-radius: 10px !important;
        padding: 0 !important;
        cursor: pointer;
        width: 44px;
        height: 44px;
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        transition: background-color .15s ease;
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
        outline: none !important;
        box-shadow: none !important;
        overflow: hidden;
        position: relative;
    }
    html body .navbar .navbar-toggler.rge-toggler:hover,
    html body .navbar .navbar-toggler.rge-toggler:focus,
    html body .navbar .navbar-toggler.rge-toggler:active {
        background: rgba(255, 255, 255, .22) !important;
        outline: none !important;
        box-shadow: none !important;
    }
    /* Hide ANYTHING inside the button that isn't one of our 3 bars
       (kills bundled .navbar-toggler-icon, stray spans, etc.) */
    html body .navbar .navbar-toggler.rge-toggler > *:not(.rge-bar) {
        display: none !important;
    }
    html body .navbar .navbar-toggler.rge-toggler::before,
    html body .navbar .navbar-toggler.rge-toggler::after {
        display: none !important;
        content: none !important;
        background: none !important;
    }
    /* The 3 white bars */
    html body .navbar .navbar-toggler.rge-toggler .rge-bar {
        display: block;
        width: 22px;
        height: 2.5px;
        background-color: #ffffff !important;
        background-image: none !important;
        border-radius: 2px;
        margin: 0;
        padding: 0;
        transition: transform .25s ease, opacity .15s ease;
    }
    /* Hide any legacy spans the bundled CSS might still target */
    html body .navbar .navbar-toggler.rge-toggler .icon-bar,
    html body .navbar .navbar-toggler.rge-toggler .navbar-toggler-icon {
        display: none !important;
    }
    /* Open state → animate bars into ✕ */
    html body .navbar .navbar-toggler.rge-toggler.is-open .rge-bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    html body .navbar .navbar-toggler.rge-toggler.is-open .rge-bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    html body .navbar .navbar-toggler.rge-toggler.is-open .rge-bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
    /* Compact logo on mobile so brand stays on the left */
    html body .navbar .navbar-brand .logo,
    html body .navbar .navbar-brand .logo-sticky {
        max-height: 34px;
    }
}

/* ============================================================
   Navbar logo — smaller, rounded corners, subtle glow.
   navbar-brand kept on the LEFT so menu items don't shift.
   ============================================================ */
.navbar-brand {
    padding: 6px 0;
    margin-right: 14px;
}
.navbar-brand .logo,
.navbar-brand .logo-sticky {
    max-height: 38px;
    width: auto;
    border-radius: 12px;
    padding: 3px 6px;
    background: rgba(255, 255, 255, .03);
    box-shadow: 0 0 18px rgba(90, 120, 255, .35),
                0 0 4px rgba(255, 255, 255, .25),
                inset 0 0 0 1px rgba(255, 255, 255, .08);
    transition: box-shadow .25s ease, transform .25s ease;
}
.navbar-brand:hover .logo,
.navbar-brand:hover .logo-sticky {
    box-shadow: 0 0 26px rgba(90, 120, 255, .55),
                0 0 8px rgba(255, 255, 255, .35),
                inset 0 0 0 1px rgba(255, 255, 255, .15);
    transform: translateY(-1px);
}

/* ============================================================
   Polylang language switcher — custom dropdown pill.
   Current language is a rounded button with flag + code; click
   opens a card of the other languages.
   ============================================================ */
.rge-lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 14px;
}
.rge-lang-current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #ffffff !important;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .04em;
    line-height: 1;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.rge-lang-current:hover,
.rge-lang-current:focus,
.rge-lang-current[aria-expanded="true"] {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .35);
    outline: none;
    transform: translateY(-1px);
}
.rge-lang-current img,
.rge-lang-current .rge-flag-fallback {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0;
    background: rgba(255, 255, 255, .12);
}
.rge-lang-code { font-size: 12px; }
.rge-lang-caret { display: inline-flex; transition: transform .18s ease; opacity: .85; }
.rge-lang-current[aria-expanded="true"] .rge-lang-caret { transform: rotate(180deg); }

.rge-lang-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 6px;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: #29003D;
    background: linear-gradient(180deg, #2f0046 0%, #1f002e 100%);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, .45);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
}
.rge-lang-switcher.is-open .rge-lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}
.rge-lang-list li { margin: 0; }
.rge-lang-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color .15s ease, transform .15s ease;
}
.rge-lang-list li a img,
.rge-lang-list li a .rge-flag-fallback {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .25);
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    background: rgba(255, 255, 255, .12);
}
.rge-lang-list li a:hover,
.rge-lang-list li a:focus {
    background: rgba(255, 255, 255, .10);
    color: #ffffff;
    transform: translateX(2px);
}
.rge-lang-name { white-space: nowrap; }

/* On mobile — switcher sits at the bottom of the dropdown panel */
@media (max-width: 767.98px) {
    .rge-lang-switcher {
        margin: 8px 0 0;
        padding: 12px 14px 4px;
        border-top: 1px solid rgba(255, 255, 255, .08);
        width: 100%;
        justify-content: flex-start;
    }
    .rge-lang-list {
        position: static;
        margin: 10px 0 0;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        background: rgba(0, 0, 0, .20);
    }
    .rge-lang-current { width: 100%; justify-content: space-between; }
}

/* Footer logo gets the same rounded look but no glow */
.site-footer .logo {
    max-height: 44px;
    border-radius: 12px;
    padding: 3px 6px;
    background: rgba(255, 255, 255, .03);
    margin-bottom: 12px;
}

/* Optional homepage text block ("Extra text" customizer field) */
.landing-extra-text {
    max-width: 880px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: #54565f;
}
.landing-extra-text h2,
.landing-extra-text h3 { font-weight: 700; color: #24252f; margin-top: 24px; margin-bottom: 12px; }
.landing-extra-text p { margin-bottom: 14px; }

/* Generic page layout (used by article, archive, page, 404) */
.page-wrap {
    padding: 140px 0 60px;
    min-height: 60vh;
}
.page-wrap .container { max-width: 1140px; }

/* Article (single post) — wider, more attractive reading column */
.single-article {
    max-width: 960px;
    margin: 0 auto;
}
.single-article .article-header { text-align: center; margin-bottom: 30px; }
.single-article .article-title  { font-weight: 900; line-height: 1.15; margin-bottom: 16px; }
.single-article .article-meta {
    color: #8b8d97;
    font-size: 14px;
    margin-bottom: 24px;
}
.single-article .article-meta a { color: inherit; text-decoration: underline; }
.single-article .article-featured {
    margin: 0 0 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px -20px rgba(36, 37, 47, .18);
}
.single-article .article-featured img { width: 100%; height: auto; display: block; }
.single-article .article-content { font-size: 17px; line-height: 1.7; color: #54565f; }
.single-article .article-content h2,
.single-article .article-content h3 { margin-top: 36px; margin-bottom: 14px; font-weight: 700; color: #24252f; }
.single-article .article-content p  { margin-bottom: 18px; }
.single-article .article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 18px 0; }
.single-article .article-content blockquote {
    border-left: 4px solid #5a78ff;
    padding: 6px 18px;
    margin: 24px 0;
    background: rgba(90, 120, 255, .05);
    border-radius: 4px;
    font-style: italic;
}
.single-article .article-content a { color: #5a78ff; }

/* ============================================================
   Tables inside articles / pages — modern card-style layout
   with gradient header, striped rows, hover highlight, and
   horizontal scroll on small screens (wrapped via the_content
   filter — see functions.php / rge_wrap_tables_in_scroll).
   ============================================================ */
.article-content .table-wrap,
.page-content .table-wrap,
.entry-content .table-wrap {
    overflow-x: auto;
    margin: 32px 0;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    box-shadow: 0 14px 36px -18px rgba(36, 37, 47, .22);
    background: #fff;
}
.article-content .table-wrap table,
.page-content .table-wrap table,
.entry-content .table-wrap table,
.article-content > table,
.page-content > table,
.entry-content > table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    font-size: 15px;
    color: #54565f;
    margin: 0;
}
.article-content > table,
.page-content > table,
.entry-content > table {
    /* tables that escaped wrapping still get nice shadow */
    margin: 32px 0;
    box-shadow: 0 14px 36px -18px rgba(36, 37, 47, .22);
}
.article-content table thead,
.page-content table thead,
.entry-content table thead {
    background: linear-gradient(135deg, #5a78ff 0%, #7b5cff 60%, #b46cff 100%);
}
.article-content table thead th,
.page-content table thead th,
.entry-content table thead th {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 16px 20px;
    text-align: left;
    border: none;
    vertical-align: middle;
}
.article-content table tbody td,
.page-content table tbody td,
.entry-content table tbody td,
.article-content table tbody th,
.page-content table tbody th,
.entry-content table tbody th {
    padding: 14px 20px;
    border-bottom: 1px solid #eef0f5;
    vertical-align: top;
    line-height: 1.5;
}
.article-content table tbody tr:nth-child(even) td,
.page-content table tbody tr:nth-child(even) td,
.entry-content table tbody tr:nth-child(even) td {
    background: rgba(90, 120, 255, .04);
}
.article-content table tbody tr:hover td,
.page-content table tbody tr:hover td,
.entry-content table tbody tr:hover td {
    background: rgba(90, 120, 255, .10);
    transition: background-color .15s ease;
}
.article-content table tbody tr:last-child td,
.page-content table tbody tr:last-child td,
.entry-content table tbody tr:last-child td {
    border-bottom: none;
}
.article-content table strong,
.page-content table strong,
.entry-content table strong { color: #24252f; }
.article-content table a,
.page-content table a,
.entry-content table a { color: #5a78ff; font-weight: 600; }

@media (max-width: 600px) {
    .article-content table thead th,
    .page-content table thead th,
    .entry-content table thead th { padding: 12px 14px; font-size: 12px; }
    .article-content table tbody td,
    .page-content table tbody td,
    .entry-content table tbody td { padding: 12px 14px; font-size: 14px; }
    .article-content .table-wrap table,
    .page-content .table-wrap table,
    .entry-content .table-wrap table { min-width: 520px; }
}

/* Store banner used inside articles, above and below the content.
   Designed to break out of the reading column (negative side margins),
   with a phone screenshot half-overlapping the top edge. */
.store-banner {
    position: relative;
    background: linear-gradient(135deg, #5a78ff 0%, #7b5cff 50%, #b46cff 100%);
    border-radius: 22px;
    padding: 60px 36px 36px;
    margin: 70px -40px 50px;
    color: #fff;
    text-align: center;
    box-shadow: 0 30px 60px -22px rgba(90, 120, 255, .55),
                inset 0 0 60px rgba(255, 255, 255, .06);
    overflow: visible;
}
.store-banner::before {
    /* decorative subtle pattern */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255,255,255,.18), transparent 40%),
        radial-gradient(circle at 10% 100%, rgba(255,255,255,.10), transparent 50%);
    pointer-events: none;
}
.store-banner__phone {
    position: absolute;
    top: -64px;
    left: 32px;
    width: 138px;
    height: 230px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 50px -10px rgba(0, 0, 0, .35),
                0 0 0 6px rgba(255, 255, 255, .85),
                0 0 0 8px rgba(0, 0, 0, .15);
    background: #1a1d29;
    z-index: 3;
    transform: rotate(-4deg);
}
.store-banner__phone img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.store-banner__inner {
    position: relative;
    z-index: 2;
}
.store-banner__title  { font-size: 26px; font-weight: 900; margin: 0 0 8px; color: #fff; line-height: 1.15; }
.store-banner__text   { font-size: 16px; opacity: .92; margin: 0 0 20px; line-height: 1.5; }
.store-banner__btn    { display: inline-block; line-height: 0; transition: transform .2s ease; }
.store-banner__btn:hover { transform: translateY(-2px); }
.store-banner__btn img { max-height: 64px; width: auto; }

@media (min-width: 768px) {
    .store-banner {
        padding: 48px 48px 44px 220px;
        margin: 80px -60px 60px;
        text-align: left;
    }
    .store-banner__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 28px;
    }
    .store-banner__copy { flex: 1; }
    .store-banner__phone {
        top: -70px;
        left: 48px;
        width: 156px;
        height: 270px;
    }
}
@media (max-width: 767px) {
    .store-banner { margin-left: 0; margin-right: 0; padding-top: 130px; }
    .store-banner__phone {
        left: 50%;
        transform: translateX(-50%) rotate(-4deg);
        top: -78px;
        width: 124px;
        height: 200px;
    }
}

/* Category / archive listing */
.archive-title {
    text-align: center;
    font-weight: 900;
    margin-bottom: 8px;
}
.archive-description { text-align: center; color: #8b8d97; margin-bottom: 40px; }
.posts-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: 1fr 1fr 1fr; } }
.post-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 40px -20px rgba(36, 37, 47, .15);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -20px rgba(36, 37, 47, .25); }
.post-card__thumb { display: block; aspect-ratio: 16 / 9; background: #f1f2f6; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body  { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.post-card__title { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0 0 10px; }
.post-card__title a { color: #24252f; }
.post-card__title a:hover { color: #5a78ff; }
.post-card__excerpt { color: #6c6e78; font-size: 14px; line-height: 1.5; margin: 0 0 14px; flex: 1; }
.post-card__more { color: #5a78ff; font-weight: 700; font-size: 14px; text-decoration: none; }

/* ============================================================
   Pagination — large modern pills with gradient highlight on
   the active page and dedicated prev/next buttons.
   ============================================================ */
.theme-pagination,
.theme-pagination .nav-links,
nav.pagination .nav-links {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.theme-pagination .nav-links { margin-top: 0; }

.theme-pagination .page-numbers,
nav.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    background: #ffffff;
    color: #24252f;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid #e6e8ef;
    box-shadow: 0 4px 14px -10px rgba(36, 37, 47, .25);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.theme-pagination .page-numbers:hover,
nav.pagination .page-numbers:hover {
    background: rgba(90, 120, 255, .08);
    color: #5a78ff;
    border-color: #5a78ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(90, 120, 255, .45);
}
.theme-pagination .page-numbers.current,
nav.pagination .page-numbers.current {
    background: linear-gradient(135deg, #5a78ff 0%, #7b5cff 60%, #b46cff 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 26px -10px rgba(90, 120, 255, .55);
    cursor: default;
    pointer-events: none;
}
.theme-pagination .page-numbers.dots,
nav.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    color: #8b8d97;
    box-shadow: none;
    min-width: 24px;
    padding: 0 4px;
}
.theme-pagination .page-numbers.prev,
.theme-pagination .page-numbers.next,
nav.pagination .page-numbers.prev,
nav.pagination .page-numbers.next {
    background: linear-gradient(135deg, #5a78ff 0%, #7b5cff 100%);
    color: #ffffff;
    border-color: transparent;
    padding: 0 22px;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 10px 22px -10px rgba(90, 120, 255, .55);
}
.theme-pagination .page-numbers.prev:hover,
.theme-pagination .page-numbers.next:hover,
nav.pagination .page-numbers.prev:hover,
nav.pagination .page-numbers.next:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -10px rgba(90, 120, 255, .65);
    background: linear-gradient(135deg, #4b6aef 0%, #6e51f0 100%);
}
nav.pagination h2.screen-reader-text { display: none; }

@media (max-width: 500px) {
    .theme-pagination .page-numbers,
    nav.pagination .page-numbers { min-width: 40px; height: 40px; font-size: 14px; padding: 0 10px; }
    .theme-pagination .page-numbers.prev,
    .theme-pagination .page-numbers.next,
    nav.pagination .page-numbers.prev,
    nav.pagination .page-numbers.next { padding: 0 16px; }
}

/* Page (generic — Terms, Privacy) */
.basic-page { max-width: 820px; margin: 0 auto; }
.basic-page .page-title { font-weight: 900; margin-bottom: 24px; }
.basic-page .page-content { font-size: 16px; line-height: 1.7; color: #54565f; }
.basic-page .page-content h2 { margin-top: 32px; margin-bottom: 14px; font-weight: 700; color: #24252f; }
.basic-page .page-content p { margin-bottom: 16px; }
.basic-page .page-content ul,
.basic-page .page-content ol { padding-left: 22px; margin-bottom: 16px; }

/* 404 */
.error-404 { text-align: center; max-width: 620px; margin: 0 auto; }
.error-404 .big-code { font-size: 140px; font-weight: 900; color: #5a78ff; line-height: 1; margin: 0; }
.error-404 h1 { margin: 12px 0 14px; font-weight: 900; }
.error-404 p  { color: #6c6e78; margin-bottom: 28px; }
.error-404 .btn-home {
    display: inline-block;
    background: #5a78ff;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
}
.error-404 .btn-home:hover { background: #4862e6; color: #fff; }

/* Comments */
.comments-area { margin-top: 50px; }
.comments-area .comment-list { list-style: none; padding: 0; }
.comments-area .comment-body { padding: 20px 0; border-bottom: 1px solid #eef0f5; }

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: #5a78ff;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 100000;
}
.skip-link:focus { left: 8px; }
