/* GPS Explainer Browse — GPS dark theme */

/* ---- CSS VARIABLES ---- */
:root {
    --gps-eb-dark: #0a0a0f;
    --gps-eb-darker: #050508;
    --gps-eb-red: #dc2626;
    --gps-eb-red-dark: #991b1b;
    --gps-eb-gray: #6b7280;
    --gps-eb-gray-light: #9ca3af;
    --gps-eb-white: #ffffff;
    --gps-eb-accent: #dc2626;
    --gps-eb-accent-light: rgba(220, 38, 38, 0.2);
}

/* ---- PAGE-LEVEL DARK OVERRIDES ---- */
.gps-eb-page body,
.gps-eb-page #page,
.gps-eb-page .site-content,
.gps-eb-page .content-area,
.gps-eb-page .entry-content,
.gps-eb-page #content,
.gps-eb-page #primary,
.gps-eb-page #main,
.gps-eb-page article,
.gps-eb-page .inside-article {
    background: var(--gps-eb-dark) !important;
}

.gps-eb-page .inside-article {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.gps-eb-page #content.site-content {
    padding: 0 !important;
    margin: 0 !important;
}

.gps-eb-page .entry-header {
    display: none !important;
}

.gps-eb-page .wp-block-group {
    background: var(--gps-eb-darker) !important;
}

/* Hide sidebar on browse pages */
.gps-eb-page .sidebar,
.gps-eb-page #right-sidebar {
    display: none !important;
}

.gps-eb-page .content-area {
    width: 100% !important;
}

.gps-eb,
.gps-eb * {
    box-sizing: border-box;
}

/* ---- HERO ---- */
.gps-eb__hero {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #050508 100%);
    padding: 5rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gps-eb__hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: .5;
}

.gps-eb__hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.gps-eb__badge {
    display: inline-block;
    background: var(--gps-eb-accent-light);
    border: 1px solid var(--gps-eb-accent);
    color: var(--gps-eb-accent) !important;
    padding: .5rem 1.5rem;
    border-radius: 50px;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.gps-eb__heading {
    font-size: clamp(2rem, 6vw, 3.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 0 1rem 0 !important;
    color: var(--gps-eb-white) !important;
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gps-eb__intro {
    font-size: 1.15rem !important;
    color: var(--gps-eb-gray) !important;
    max-width: 650px;
    margin: 0 auto !important;
    line-height: 1.7 !important;
}

/* ---- SEARCH BAR ---- */
.gps-eb__search-section {
    background: var(--gps-eb-darker);
    padding: 2rem 2rem 2.5rem;
}

.gps-eb__search-inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.gps-eb__search-wrap {
    display: flex;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px;
    overflow: hidden;
    background: rgba(255,255,255,.05);
}

.gps-eb__search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gps-eb-gray);
    pointer-events: none;
    z-index: 1;
}

.gps-eb__search {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: var(--gps-eb-white) !important;
    padding: .85rem 1rem .85rem 44px !important;
    font-size: 1rem !important;
    outline: none;
}

.gps-eb__search::placeholder {
    color: var(--gps-eb-gray) !important;
}

.gps-eb__search-clear {
    background: none;
    border: none;
    color: var(--gps-eb-gray);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 16px;
    line-height: 1;
}

.gps-eb__search-clear:hover {
    color: var(--gps-eb-white);
}

/* ---- CONTROLS ROW ---- */
.gps-eb__controls {
    background: var(--gps-eb-darker);
    padding: 0 2rem 1.5rem;
}

.gps-eb__controls-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gps-eb__status {
    font-size: .9rem;
    color: var(--gps-eb-gray-light);
    margin: 0;
}

.gps-eb__status-showing {
    font-weight: 600;
    color: var(--gps-eb-white);
}

.gps-eb__sort-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gps-eb__sort-label {
    font-size: .9rem;
    color: var(--gps-eb-gray);
    white-space: nowrap;
}

.gps-eb__sort {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    font-size: .85rem;
    background: rgba(255,255,255,.05);
    color: var(--gps-eb-white);
    cursor: pointer;
}

.gps-eb__sort option {
    background: #1a1a2e;
    color: var(--gps-eb-white);
}

/* ---- CARD GRID ---- */
.gps-eb__grid-section {
    background: var(--gps-eb-dark);
    padding: 2rem;
}

.gps-eb__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ---- CARD ---- */
.gps-eb__card {
    background: rgba(255,255,255,.04);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.1);
    overflow: hidden;
    box-shadow: 0 0 2px rgba(0,0,0,.2);
    transition: box-shadow .2s ease, transform .2s ease;
}

.gps-eb__card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    transform: translateY(-2px);
    border-color: rgba(220,38,38,.3);
}

.gps-eb__card[hidden] {
    display: none;
}

.gps-eb__card-img-link {
    display: block;
    text-decoration: none;
}

.gps-eb__card-img-wrap {
    position: relative;
    padding-top: 52.5%;
    overflow: hidden;
    background: rgba(255,255,255,.08);
}

.gps-eb__card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.gps-eb__card:hover .gps-eb__card-img {
    transform: scale(1.03);
}

.gps-eb__card-body {
    padding: 16px 20px 20px;
}

.gps-eb__card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

.gps-eb__card-title a {
    color: #ffffff !important;
    text-decoration: none;
}

.gps-eb__card-title a:hover {
    color: var(--gps-eb-red) !important;
}

.gps-eb__card-excerpt {
    font-size: .9rem;
    color: #d1d5db !important;
    margin: 0 0 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gps-eb__card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gps-eb__card-meta {
    font-size: .8rem;
    color: var(--gps-eb-gray-light);
}

.gps-eb__card-readmore {
    font-size: .85rem;
    font-weight: 600;
    color: var(--gps-eb-red);
    text-decoration: none;
}

.gps-eb__card-readmore:hover {
    color: var(--gps-eb-red-dark);
}

/* ---- EMPTY STATE ---- */
.gps-eb__empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--gps-eb-gray);
    font-size: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gps-eb__empty[hidden] {
    display: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .gps-eb__hero {
        padding: 3.5rem 1.5rem 2.5rem;
    }

    .gps-eb__search-section,
    .gps-eb__controls,
    .gps-eb__grid-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .gps-eb__controls-inner {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .gps-eb__grid {
        grid-template-columns: 1fr;
    }
}
