/* ─── Regional Watch Page ─────────────────────────────────────────── */

.gl-page {
    position: relative;
    background-image: url('../img/hero.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gl-page__overlay {
    position: absolute;
    inset: 0;
    background: #0000008a;
    z-index: 0;
}

.gl-page__content {
    position: relative;
    z-index: 1;
}

/* ─── Page Title ─────────────────────────────────────────────────── */
.gl-page-title {
    text-align: center;
    padding: 28px 0 18px;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
    margin: 0;
}

/* ─── Sidebar ────────────────────────────────────────────────────── */
.rw-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 80px;
}

.rw-sidebar__block {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 18px;
}

.rw-sidebar__heading {
    color: #f0c040;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.rw-sidebar__input {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 9px 12px;
    font-size: .85rem;
    outline: none;
    transition: border-color .2s;
}

.rw-sidebar__input::placeholder { color: rgba(255,255,255,.4); }
.rw-sidebar__input:focus { border-color: #1a7a1a; }

/* Month filter scroll container */
#rw-months {
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #1a7a1a rgba(255,255,255,0.1);
    padding-right: 4px;
}

#rw-months::-webkit-scrollbar { width: 4px; }
#rw-months::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
#rw-months::-webkit-scrollbar-thumb { background: #1a7a1a; border-radius: 2px; }

/* Month filter buttons */
.rw-month-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,.85);
    padding: 8px 12px;
    font-size: .82rem;
    cursor: pointer;
    margin-bottom: 6px;
    transition: background .2s, border-color .2s, color .2s;
    text-align: left;
}

.rw-month-btn:last-of-type { margin-bottom: 10px; }

.rw-month-btn:hover {
    background: rgba(26,122,26,0.25);
    border-color: rgba(26,122,26,0.5);
    color: #fff;
}

.rw-month-btn.active {
    background: rgba(26,122,26,0.45);
    border-color: #1a7a1a;
    color: #f0c040;
    font-weight: 600;
}

.rw-month-count {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,.7);
    font-size: .72rem;
    padding: 1px 7px;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
}

.rw-month-btn.active .rw-month-count {
    background: #1a7a1a;
    color: #fff;
}

.rw-clear-btn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(220,53,69,.5);
    color: #f87171;
    padding: 7px 12px;
    font-size: .8rem;
    cursor: pointer;
    transition: background .2s;
}

.rw-clear-btn:hover {
    background: rgba(220,53,69,.2);
}

/* ─── Results info ───────────────────────────────────────────────── */
.rw-results-info {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    margin-bottom: 12px;
}

/* ─── Crystal Cards ──────────────────────────────────────────────── */
.gl-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.38);
}

/* ─── Card Image ─────────────────────────────────────────────────── */
.gl-card__img-wrap {
    width: 100%;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
    background: #111;
}

.gl-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .35s ease;
}

.gl-card:hover .gl-card__img-wrap img { transform: scale(1.05); }

.rw-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a2a1a;
    font-size: 2.5rem;
    color: #f0c040;
}

/* ─── Card Body ──────────────────────────────────────────────────── */
.gl-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gl-card__title {
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 8px;
    flex: 1;
}

.gl-card__title a { color: #fff; text-decoration: none; }
.gl-card__title a:hover { color: #f0c040; text-decoration: underline; }

/* ─── Card Footer ────────────────────────────────────────────────── */
.gl-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.15);
}

.gl-card__date {
    font-size: .75rem;
    color: rgba(255,255,255,.7);
    margin: 0;
}

/* ─── Empty state ────────────────────────────────────────────────── */
.rw-empty {
    text-align: center;
    color: rgba(255,255,255,.5);
    padding: 40px 0;
    font-size: .9rem;
}

/* ─── Pagination ─────────────────────────────────────────────────── */
.gl-pagination .page-link {
    border-radius: 0 !important;
    margin: 0 2px;
    border: 1px solid #1a7a1a;
    background: #1a7a1a;
    color: #fff;
    font-size: .8rem;
}

.gl-pagination .page-link:hover { background: #145e14; border-color: #145e14; color: #fff; }
.gl-pagination .page-item.active .page-link { background: #f0a500; border-color: #f0a500; color: #fff; }
.gl-pagination .page-item.disabled .page-link { background: #555; border-color: #555; color: #aaa; opacity: 1; }
