/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #0d0f14;
    --surface:   #161a23;
    --surface2:  #1e2330;
    --border:    #2a2f3d;
    --accent:    #00c2ff;
    --accent2:   #0077ff;
    --gold:      #f5c842;
    --warn:      #ff6b35;
    --text:      #e8ecf4;
    --muted:     #7a8299;
    --radius:    14px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

/* ── Page Layout ── */
.page-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ── Logo ── */
.site-banner {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}
.site-banner img {
    width: 100%;
    max-width: 580px;
    height: auto;
    display: block;
}

/* ── Header ── */
header {
    text-align: center;
    margin-bottom: 48px;
}

header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4rem);
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 300;
}

/* ── Grid ── */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 540px) {
    .grid { grid-template-columns: 1fr; }
}

/* ── Card ── */
.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 194, 255, 0.12);
    border-color: var(--accent);
}

/* ── Thumbnail ── */
.card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--surface2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-thumb img {
    transform: scale(1.04);
}

/* ── Card Body ── */
.card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.card-body p {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.55;
    flex: 1;
}

/* ── Code Badge ── */
.code-badge {
    display: block;
    margin-top: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(0, 194, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 194, 255, 0.25);
    align-self: stretch;
    text-align: center;
    transition: background 0.2s, border-color 0.2s;
}
.card:hover .code-badge {
    background: rgba(0, 194, 255, 0.2);
    border-color: rgba(0, 194, 255, 0.6);
}

/* ── Variants ── */
.card--gold { border-color: rgba(245, 200, 66, 0.3); }
.card--gold:hover { border-color: var(--gold); box-shadow: 0 12px 40px rgba(245, 200, 66, 0.12); }
.card--gold .code-badge { background: rgba(245, 200, 66, 0.1); color: var(--gold); border-color: rgba(245, 200, 66, 0.3); }

.card--warn { border-color: rgba(255, 107, 53, 0.3); }
.card--warn:hover { border-color: var(--warn); box-shadow: 0 12px 40px rgba(255, 107, 53, 0.12); }
.code-badge--warn { background: rgba(255, 107, 53, 0.1); color: var(--warn); border-color: rgba(255, 107, 53, 0.3); }

}
