/*
 * Public site (landing + text pages).
 * Sits on top of the HUD theme CSS (vendor.min.css + app.min.css) with the
 * orange theme colour. Only what the theme does not already provide.
 */

/* The public site does not need the theme's page-load bar (Pace). */
.pace {
    display: none !important;
}

/* ---------- Header ---------- */
.ct-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(6px);
    background: rgba(13, 17, 23, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ct-brand {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bs-body-color);
}

.ct-brand-mark {
    color: var(--bs-theme);
}

.ct-lang .dropdown-item.active {
    background: var(--bs-theme);
    color: #000;
}

/* ---------- Hero ---------- */
.ct-hero {
    position: relative;
    min-height: min(88vh, 52rem);
    display: flex;
    align-items: center;
    background-color: #0d1117;
    /* A capture of the game (sandbox game, base-iso); the old render,
       hero-colonia.jpg, stays for the other bands. */
    background-image: url("../img/hero-partida.jpg");
    background-size: cover;
    background-position: 85% center;
}

.ct-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 10, 14, 0.95) 0%, rgba(8, 10, 14, 0.8) 38%, rgba(8, 10, 14, 0.1) 75%),
        linear-gradient(0deg, rgba(8, 10, 14, 1) 0%, rgba(8, 10, 14, 0) 30%);
}

.ct-hero-content {
    position: relative;
    z-index: 1;
}

.ct-kicker {
    color: var(--bs-theme);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
}

.ct-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ct-lead {
    font-size: 1.15rem;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ---------- Countdown ---------- */
.ct-countdown {
    display: flex;
    gap: 0.75rem;
}

.ct-countdown-cell {
    min-width: 4.6rem;
    padding: 0.6rem 0.4rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.45);
}

.ct-countdown-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--bs-theme);
    line-height: 1;
}

.ct-countdown-label {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- Wishlist form ---------- */
.ct-notify {
    max-width: 30rem;
    /* Keep the form clear of the sticky header when the page scrolls to it. */
    scroll-margin-top: 6rem;
}

.ct-modal-icon {
    font-size: 3rem;
    line-height: 1;
}

.ct-modal-icon.is-success {
    color: var(--bs-theme);
}

.ct-modal-icon.is-danger {
    color: var(--bs-danger);
}

.ct-notify .form-check-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.ct-captcha {
    padding: 0.35rem 0.6rem;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.ct-honeypot {
    position: absolute;
    left: -9999px;
}

/* ---------- Sections ---------- */
.ct-section {
    padding: 5rem 0;
}

.ct-section-alt {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ct-section-title {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

/* ---------- Video ---------- */
.ct-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background-image: url("../img/hero-colonia.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-video::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.ct-video-play {
    position: relative;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    border: 2px solid var(--bs-theme);
    background: rgba(0, 0, 0, 0.55);
    color: var(--bs-theme);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-video-note {
    position: absolute;
    bottom: 0.75rem;
    left: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Features ---------- */
.ct-feature-icon {
    font-size: 1.8rem;
    color: var(--bs-theme);
}

/* ---------- Calm play band ---------- */
.ct-calm {
    background:
        linear-gradient(0deg, rgba(8, 10, 14, 0.9), rgba(8, 10, 14, 0.9)),
        url("../img/hero-colonia.jpg") center / cover;
}

.ct-calm-text {
    font-size: 1.15rem;
}

/* ---------- Carousel ---------- */
/* Game screenshots (1342 x 808): whole, no crop. A click opens them big. */
.ct-carousel-img {
    aspect-ratio: 1342 / 808;
    object-fit: cover;
}

.ct-shot-open {
    cursor: zoom-in;
}

/* The carousel fits the screen; the modal shows them bigger. */
.ct-shots-card {
    max-width: 1100px;
}

.ct-carousel .carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    left: 1rem;
    right: auto;
    bottom: 1rem;
    text-align: left;
}

.ct-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--bs-theme);
}

/* Screenshots big: a modal centred on the page, as wide as the screen allows. */
.ct-shots-modal .modal-dialog {
    max-width: min(1400px, 95vw);
}

.ct-shots-modal .modal-content {
    background: #000;
    border: 0;
    overflow: hidden;
}

.ct-shot-big {
    max-height: 88vh;
    object-fit: contain;
}

.ct-shots-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    filter: invert(1);
    opacity: 0.8;
}
/* ---------- Footer ---------- */
.ct-footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.ct-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.ct-footer a:hover {
    color: var(--bs-theme);
}

/* ---------- Text pages (legal) ---------- */
.ct-page-head {
    padding: 4rem 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(0deg, rgba(8, 10, 14, 1) 0%, rgba(8, 10, 14, 0.82) 100%),
        url("../img/categoria-estructuras.jpg") center / cover;
}

.ct-toc {
    position: sticky;
    top: 5.5rem;
}

.ct-toc .nav-link {
    padding: 0.3rem 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.ct-toc .nav-link:hover {
    color: var(--bs-theme);
}

.ct-prose {
    max-width: 46rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
}

.ct-prose h2 {
    margin-top: 2.5rem;
    font-size: 1.35rem;
    color: #fff;
    scroll-margin-top: 5.5rem;
}

.ct-prose dl {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.4rem 1rem;
}

.ct-prose dt {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.ct-placeholder {
    color: var(--bs-warning);
}
