/* /archive/archive.css
   Scoped styles ONLY for the Rebble Archive pages.
*/

:root {
    --arch-bg: #f4f6fb;
    --arch-surface: #ffffff;
    --arch-border-subtle: #dde3f2;
    --arch-accent: #1f73ff;
    --arch-text: #151b26;
    --arch-muted: #6b7380;
    --arch-radius-lg: 18px;
    --arch-radius-md: 12px;
    --arch-shadow-soft: 0 8px 20px rgba(18, 24, 40, 0.08);
    --arch-font: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Segoe UI", Roboto, sans-serif;
}

.arch-body {
    margin: 0;
    padding: 0;
    font-family: var(--arch-font);
    background: #bcc8d9;
    color: var(--arch-text);
}

/* HEADER */

.arch-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 8px;
}

.arch-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.arch-kicker {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--arch-muted);
    margin-bottom: 4px;
}

.logo {
  height: 115px;
  width: auto;
  display: block;
}

.arch-title {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.02em;
}

.arch-subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--arch-muted);
}

.arch-subtitle .huge-text {
  font-size: 20px;   /* bigger than the base 14px */
  font-weight: bold; /* bold emphasis */
  color: #000;       /* optional: override muted color */
}

.arch-header-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.arch-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--arch-border-subtle);
    font-size: 13px;
    color: var(--arch-text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
}

.arch-btn-secondary:hover {
    border-color: var(--arch-accent);
}

/* CONTROLS */

.arch-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.arch-control-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.arch-control-label {
    font-size: 13px;
    color: var(--arch-muted);
}

.arch-chip {
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    color: var(--arch-text);
}

.arch-chip:hover {
    border-color: var(--arch-accent);
}

.arch-chip.is-active {
    background: var(--arch-accent);
    border-color: var(--arch-accent);
    color: #ffffff;
}

/* MAIN GRID */

.arch-main {
    max-width: 1200px;
    margin: 8px auto 32px;
    padding: 0 16px 24px;
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

/* CARD */

.arch-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 12px;
    border-radius: var(--arch-radius-lg);
    background: var(--arch-surface);
    box-shadow: var(--arch-shadow-soft);
    border: 1px solid rgba(126, 142, 176, 0.12);
    text-decoration: none;
    color: inherit;
    transition: transform 0.12s ease, box-shadow 0.12s ease,
                border-color 0.12s ease;
}

.arch-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 54, 0.16);
    border-color: rgba(53, 99, 233, 0.3);
}

.arch-card-top {
    display: flex;
    gap: 12px;
}

.arch-card-icon-wrap {
    flex-shrink: 0;
    width: 78px;
    height: 78px;
    border-radius: 20px;
    overflow: hidden;
    background: #ecf1ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arch-card-icon {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.arch-card-main {
    flex: 1;
    min-width: 0;
}

.arch-card-type-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.arch-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #e3ebff;
    color: #1b418f;
}

.arch-hearts {
    font-size: 13px;
    color: #d12b5b;
}

.arch-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
}

.arch-card-dev {
    margin-top: 2px;
    font-size: 12px;
    color: var(--arch-muted);
}

.arch-card-desc {
    margin: 0;
    font-size: 13px;
    color: var(--arch-text);
    line-height: 1.4;
}

.arch-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.arch-download-label {
    font-size: 11px;
    color: var(--arch-accent);
}

/* PAGINATION */

.arch-pagination {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.arch-page-btn {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--arch-border-subtle);
    text-decoration: none;
    color: var(--arch-text);
    background: rgba(255, 255, 255, 0.9);
}

.arch-page-btn:hover {
    border-color: var(--arch-accent);
}

.arch-page-info {
    color: var(--arch-muted);
}

/* FOOTER */

.arch-footer {
    border-top: 1px solid rgba(163, 177, 210, 0.4);
    background: rgba(245, 247,255, 0.9);
}

.arch-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px 14px;
    font-size: 12px;
    color: var(--arch-muted);
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

/* --- Position PebbleMirror nav next to search bar --- */
.archive-nav-row {
    display: flex;
    gap: 14px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0px;
    margin-top: -20px; /* pull it slightly up so it sits visually aligned */
}

/* Push nav to the right when space allows */
@media (min-width: 920px) {
    .archive-nav-row {
        position: absolute;
        left: 630px;   /* pull left – adjust as needed */
        top: 220px;    /* height stays the same */
    }
}


/* Style buttons same as PebbleMirror nav */
.archive-nav-row .nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;     /* smaller */
    border-radius: 24px;   /* smaller */
    background: #6fa8cf;
    color: white;
    font-size: 14px;       /* smaller font */
    font-weight: 600;
    text-decoration: none;
}

.archive-nav-row .nav-store {
    background: white;
    color: #0a1c3b;
}


.archive-nav-row .nav-store i {
    color: #0a1c3b;
}


/* MOBILE */

@media (max-width: 720px) {
    .arch-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Reduce logo size */
    .arch-header-inner img {
    max-height: 70px !important;
    height: auto !important;
  }

    .arch-header-links {
        justify-content: flex-start;
    }
    
    .arch-header-inner form input[type="text"] {
    max-width: 240px !important; /* shrink for mobile */
    width: 90% !important;       /* keep responsive */
    font-size: 13px !important;  /* slightly smaller text */
  }

    .arch-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .arch-main {
        padding-bottom: 40px;
    }
}

/* Pagination (better, modern, clean) */
.arch-pagination {
    margin-top: 30px;
    text-align: center;
}

.arch-page-btns {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.arch-page-btn {
    padding: 6px 10px;
    background: #e8edf5;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.arch-page-btn:hover {
    background: #d0d8e5;
}

.arch-page-current {
    padding: 6px 10px;
    background: #4a7ed1;
    color: white;
    border-radius: 6px;
    font-weight: 600;
}

.arch-page-ellipsis {
    padding: 6px 6px;
    color: #888;
    font-size: 14px;
}

/* ============================================================
   CD PROJEKT RED — REBBLE ARCHIVE
   COLOR OVERRIDE ONLY (NO STRUCTURE CHANGES)
============================================================ */

/* ---------- Global ---------- */
.arch-body {
    background: #d9d9d9;
    color: #111111;
}

/* ---------- Header ---------- */
.arch-header {
    background: #000000;
}

.arch-kicker {
    color: #9a9a9a;
}

.arch-title {
    color: #ffffff;
}

.arch-subtitle {
    color: #b5b5b5;
}

.arch-subtitle .huge-text {
    color: #ffffff;
}

/* ---------- Header Buttons ---------- */
.arch-btn-secondary {
    background: #ffffff;
    color: #111111;
    border-color: #e1e1e1;
}

.arch-btn-secondary:hover {
    border-color: #d62d20;
}

/* ---------- Controls / Chips ---------- */
.arch-control-label {
    color: #777777;
}

.arch-chip {
    background: #ffffff;
    color: #111111;
    border-color: #e1e1e1;
}

.arch-chip:hover {
    border-color: #d62d20;
}

.arch-chip.is-active {
    background: #d62d20;
    border-color: #d62d20;
    color: #ffffff;
}

/* ---------- Cards ---------- */
.arch-card {
    background: #ffffff;
    border-color: #e1e1e1;
    color: #111111;
}

.arch-card:hover {
    border-color: #cfcfcf;
}

.arch-card-icon-wrap {
    background: #f1f1f1;
}

.arch-pill {
    background: #f3f3f3;
    color: #111111;
}

.arch-hearts {
    color: #d62d20;
}

.arch-card-dev {
    color: #666666;
}

.arch-card-desc {
    color: #333333;
}

.arch-download-label {
    color: #d62d20;
}

/* ---------- Pagination ---------- */
.arch-page-btn {
    background: #ffffff;
    color: #111111;
    border-color: #e1e1e1;
}

.arch-page-btn:hover {
    background: #f3f3f3;
}

.arch-page-current {
    background: #d62d20;
    color: #ffffff;
}

.arch-page-ellipsis {
    color: #777777;
}

/* ---------- Footer ---------- */
.arch-footer {
    background: #d9d9d9;
    border-top-color: #cfcfcf;
}

.arch-footer-inner {
    color: #666666;
}

/* ---------- Archive Nav Pills ---------- */
.archive-nav-row .nav-btn {
    background: #000000;
    color: #ffffff;
}

.archive-nav-row .nav-store {
    background: #ffffff;
    color: #111111;
}

.archive-nav-row .nav-store i {
    color: #111111;
}

/* ============================================================
   REBBLE ARCHIVE — PROJEKTRED HEADER BACKGROUND (CORRECT)
   • Full-width black header background
   • Gray body preserved
   • ZERO layout / ZERO movement
============================================================ */

/* 1️⃣ Black background behind header area ONLY */
.arch-body {
  background: linear-gradient(
    to bottom,
    #000000 0px,
    #000000 305px,
    #d9d9d9 260px,
    #d9d9d9 100%
  );
}

/* 2️⃣ Ensure header text is readable on black */
.arch-kicker,
.arch-subtitle {
  color: #b5b5b5;
}

.arch-subtitle .huge-text {
  color: #ffffff;
}

/* 3️⃣ Archive header nav pills — white w/ black text */
.archive-nav-row .nav-btn {
  background: #ffffff !important;
  color: #000000 !important;
  border: none !important;
}

.archive-nav-row .nav-btn i {
  color: #000000 !important;
}

/* 4️⃣ Keep ProjektRed red for active filters */
.arch-chip.is-active {
  background: #d62d20;
  border-color: #d62d20;
  color: #ffffff;
}

@media (max-width: 768px) {
  .archive-nav-row .nav-forum {
    display: none;
  }
}

@media (max-width: 768px) {
  .archive-nav-row { margin-top: 16px; }
}


@media (max-width: 768px) {
  .arch-controls .arch-control-group:last-of-type { display: none; }  /* hides Type */
}
