/**
 * GamingSites.com Modern Responsive Template
 * Public stylesheet
 * Version: 2026.08.16-A
 */

:root {
    --page-bg: #0c1017;
    --page-bg-soft: #121926;
    --surface: #161e2b;
    --surface-2: #1d2737;
    --surface-3: #243146;
    --text: #eef3f8;
    --muted: #aeb9c8;
    --heading: #ffffff;
    --accent: #f2bd4b;
    --accent-strong: #ffd675;
    --accent-text: #17120a;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.22);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shell: 1180px;
    --focus: #8cc8ff;
}

/* Predefined color sets. The settings page chooses only the body class; all
   styling remains in this external stylesheet. */
.theme-midnight-gold {
    --page-bg: #0c1017;
    --page-bg-soft: #121926;
    --surface: #161e2b;
    --surface-2: #1d2737;
    --surface-3: #243146;
    --text: #eef3f8;
    --muted: #aeb9c8;
    --heading: #ffffff;
    --accent: #f2bd4b;
    --accent-strong: #ffd675;
    --accent-text: #17120a;
}

.theme-ocean-blue {
    --page-bg: #07131f;
    --page-bg-soft: #0b2032;
    --surface: #102a40;
    --surface-2: #153750;
    --surface-3: #1a4564;
    --text: #ecf8ff;
    --muted: #aed2e8;
    --heading: #ffffff;
    --accent: #59c7ff;
    --accent-strong: #9ee0ff;
    --accent-text: #04131c;
}

.theme-emerald {
    --page-bg: #071512;
    --page-bg-soft: #0d211d;
    --surface: #123029;
    --surface-2: #173d34;
    --surface-3: #1d4c41;
    --text: #effcf7;
    --muted: #add5c7;
    --heading: #ffffff;
    --accent: #63d6a7;
    --accent-strong: #9aebcb;
    --accent-text: #062018;
}

.theme-burgundy {
    --page-bg: #17090d;
    --page-bg-soft: #250f16;
    --surface: #351620;
    --surface-2: #451c29;
    --surface-3: #582334;
    --text: #fff2f5;
    --muted: #d8b6c0;
    --heading: #ffffff;
    --accent: #f3a35c;
    --accent-strong: #ffc385;
    --accent-text: #241006;
}

.theme-slate {
    --page-bg: #111316;
    --page-bg-soft: #1a1d22;
    --surface: #22262d;
    --surface-2: #2b3038;
    --surface-3: #353b45;
    --text: #f3f5f7;
    --muted: #bbc0c7;
    --heading: #ffffff;
    --accent: #d9e1ea;
    --accent-strong: #ffffff;
    --accent-text: #111316;
}

.theme-royal-purple {
    --page-bg: #100b1d;
    --page-bg-soft: #1a1230;
    --surface: #251941;
    --surface-2: #302052;
    --surface-3: #3c2866;
    --text: #f6f2ff;
    --muted: #c8bae1;
    --heading: #ffffff;
    --accent: #c69cff;
    --accent-strong: #dfc4ff;
    --accent-text: #190f27;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 280px;
    background:
        radial-gradient(circle at 15% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 34rem),
        linear-gradient(180deg, var(--page-bg-soft) 0, var(--page-bg) 30rem);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    width: min(calc(100% - 40px), var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    left: 16px;
    top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #111111;
    transform: translateY(-180%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--page-bg) 88%, transparent);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    min-height: 104px;
    padding-block: 18px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
}

.brand__name {
    color: var(--heading);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.brand__tagline {
    max-width: 760px;
    color: var(--muted);
    font-size: 0.94rem;
}

.primary-nav {
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.primary-nav__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    padding-block: 6px;
}

.primary-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible,
.primary-nav__link.is-active {
    background: var(--surface-3);
    color: var(--heading);
}

.primary-nav__link:hover {
    transform: translateY(-1px);
}

.primary-nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 2px;
    border-radius: 99px;
    background: var(--accent);
}

.hero {
    padding: clamp(46px, 8vw, 92px) 0 clamp(40px, 7vw, 76px);
    border-bottom: 1px solid var(--border);
}

.hero--compact {
    padding-block: 56px;
}

.hero__inner {
    display: grid;
    align-items: center;
    gap: clamp(30px, 5vw, 72px);
}

.hero__inner--with-image {
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
}

.hero__copy {
    max-width: 780px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--heading);
    line-height: 1.14;
    letter-spacing: -0.025em;
}

h1 {
    max-width: 900px;
    margin-bottom: 20px;
    font-size: clamp(2.4rem, 6vw, 5.1rem);
    font-weight: 900;
}

.hero--category h1 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(1.85rem, 3.5vw, 3rem);
    font-weight: 850;
}

h3 {
    font-size: 1.3rem;
    font-weight: 800;
}

.hero__lead {
    max-width: 780px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: clamp(1.03rem, 1.7vw, 1.2rem);
}

.hero__media {
    overflow: hidden;
    justify-self: end;
    width: min(100%, 360px);
    aspect-ratio: 1.08 / 1;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
    transition: transform 300ms ease, filter 300ms ease;
}

.hero__media:hover img {
    transform: scale(1.035);
    filter: brightness(1.06);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    margin: 4px 8px 4px 0;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:focus-visible,
.primary-nav__link:focus-visible,
.category-card:focus-visible,
.category-chip:focus-visible,
a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.button--primary,
.button--affiliate {
    background: var(--accent);
    color: var(--accent-text);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 24%, transparent);
}

.button--primary:hover,
.button--affiliate:hover {
    background: var(--accent-strong);
    box-shadow: 0 15px 30px color-mix(in srgb, var(--accent) 30%, transparent);
}

.button--secondary {
    border-color: var(--border-strong);
    background: var(--surface);
    color: var(--heading);
}

.button--secondary:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    background: var(--surface-2);
}

.button--disabled {
    cursor: not-allowed;
    border-color: var(--border);
    background: var(--surface-2);
    color: var(--muted);
    box-shadow: none;
}

.section {
    padding-block: clamp(52px, 7vw, 88px);
}

.section--sites {
    padding-top: 44px;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 30px;
}

.section-heading p:last-child {
    margin: 0;
    color: var(--muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    overflow: hidden;
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    box-shadow: var(--shadow);
}

.category-card__media {
    overflow: hidden;
    display: block;
    height: 132px;
    background: var(--surface-3);
}

.category-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease, filter 260ms ease;
}

.category-card:hover .category-card__media img {
    transform: scale(1.06);
    filter: brightness(1.08);
}

.category-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.category-card__title {
    margin-bottom: 8px;
    color: var(--heading);
    font-size: 1.16rem;
    font-weight: 850;
}

.category-card__description {
    flex: 1;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

.category-card__cta {
    margin-top: 18px;
    color: var(--accent);
    font-size: 0.91rem;
    font-weight: 850;
}

.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.affiliate-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    min-height: 270px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, var(--surface-2), var(--surface));
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.17);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.affiliate-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
    box-shadow: var(--shadow);
}

.affiliate-card__media {
    overflow: hidden;
    min-height: 100%;
    border-right: 1px solid var(--border);
    background: var(--surface-3);
}

.affiliate-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease, filter 260ms ease;
}

.affiliate-card:hover .affiliate-card__media img {
    transform: scale(1.045);
    filter: brightness(1.07);
}

.affiliate-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 24px;
}

.affiliate-card__body h3 {
    margin-bottom: 10px;
}

.affiliate-card__body p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.96rem;
}

.affiliate-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 13px;
}

.badge,
.category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 850;
    line-height: 1.1;
}

.badge {
    background: color-mix(in srgb, var(--accent) 20%, var(--surface-3));
    color: var(--accent-strong);
}

.category-chip {
    border: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
}

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

.affiliate-card__display-url {
    overflow: hidden;
    margin-top: auto;
    margin-bottom: 14px;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.81rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.affiliate-card .button {
    align-self: flex-start;
    margin-bottom: 0;
}

.site-footer {
    margin-top: 24px;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--page-bg) 90%, #000000);
}

.site-footer__inner {
    display: grid;
    gap: 18px;
    padding-block: 38px 48px;
}

.site-footer p {
    max-width: 900px;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer__notice {
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.site-footer__admin a {
    color: var(--accent);
}

@media (max-width: 980px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .affiliate-grid {
        grid-template-columns: 1fr;
    }

    .hero__inner--with-image {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(calc(100% - 28px), var(--shell));
    }

    .site-header__inner {
        min-height: 88px;
    }

    .brand__tagline {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .primary-nav__inner {
        gap: 5px;
        padding-block: 8px;
    }

    .primary-nav__link {
        flex: 1 1 auto;
        min-width: max-content;
        padding-inline: 11px;
        border: 1px solid var(--border);
        background: var(--surface);
        font-size: 0.82rem;
    }

    .primary-nav__link.is-active::after {
        display: none;
    }

    .hero {
        padding-block: 42px;
    }

    .hero__inner--with-image,
    .section-heading {
        grid-template-columns: 1fr;
    }

    .hero__media {
        justify-self: stretch;
        width: 100%;
        max-height: 330px;
        aspect-ratio: 16 / 10;
    }

    .section-heading {
        gap: 10px;
    }

    .affiliate-card {
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .affiliate-card__body {
        padding: 20px;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 15.5px;
    }

    .shell {
        width: min(calc(100% - 22px), var(--shell));
    }

    .primary-nav__inner {
        align-items: stretch;
    }

    .primary-nav__link {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
        min-height: 42px;
        padding: 7px 8px;
        text-align: center;
    }

    h1 {
        font-size: clamp(2.15rem, 13vw, 3.4rem);
    }

    .button {
        width: 100%;
        margin-right: 0;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .category-card__media {
        height: 100%;
        min-height: 156px;
    }

    .affiliate-card {
        grid-template-columns: 1fr;
    }

    .affiliate-card__media {
        min-height: 168px;
        max-height: 205px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .affiliate-card__media img {
        object-fit: contain;
        padding: 18px;
        background: var(--surface-3);
    }

    .affiliate-card .button {
        align-self: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}
