@import "base.css";

:root {
    --bg: #0f172a; /* slate-900 */
    --card: #111827; /* gray-900 */
    --muted: #9ca3af; /* gray-400 */
    --text: #e5e7eb; /* gray-200 */
    --accent: #eab308; /* amber-500 */
    --accent-2: #22d3ee; /* cyan-400 */
    --ring: rgba(255,255,255,.35);
    --shadow: 0 1rem 2rem rgba(0,0,0,.35);
    --radius: 1rem;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji","Segoe UI Emoji";
    color: var(--text);
    /*background: radial-gradient(1200px 800px at 80% -10%, rgba(34,211,238,.18), transparent 55%), radial-gradient(900px 600px at 10% 110%, rgba(234,179,8,.14), transparent 60%), linear-gradient(180deg, #0b1022, #0a0e1c 35%, #070b16);
    background-attachment: fixed;*/
    /*background: #491041;
    background: linear-gradient(15deg, rgb(73 16 65) 0%, rgba(153, 0, 0, 1) 65%, rgba(226, 0, 0, 1) 100%);*/
    background-color: #141A25;
    background-image: linear-gradient(15deg, rgb(20 26 37) 0%, rgb(25 56 86) 65%, rgb(58 83 118) 100%);
    background-attachment: fixed;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

header.site {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5em;
    margin: 5vh 0 10vh;
}

.brand-logo {
    height: auto;
    width: auto;
    max-height: 64px;
    max-width: 20vw;
}

header.site img.logo {
    height: auto;
    width: auto;
    max-height: 64px;
    max-width: 20vw;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.3));
    border: 1px solid white;
    box-sizing: content-box;
}

header.site h1 {
    font-size: clamp(22px, 4vw, 28px);
    margin: 0;
    letter-spacing:.2px;
}

header.site .sub {
    color: var(--muted);
    font-size: 1.2rem;
    margin-top: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: max(3vw, 2rem);
}

.card {
    grid-column: span 12;
    background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.1));
    border: 1px solid rgba(255,255,255,.06);
    overflow: clip;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:not(.disabled) {
    box-shadow: var(--shadow);
}

.card:not(.disabled):hover,
.card:not(.disabled):focus-within {
    transform: scale(1.02);
}

.card, .card .block-link {
    border-radius: var(--radius);
}

@media (min-width: 820px) {
    header.site {
        flex-direction: row;
        text-align: left;
    }
    .card {
        grid-column: span 6;
    }
}

.card a.block-link {
    display:block;
    color: inherit !important;
    text-decoration: none;
    padding: 22px;
    position: relative;
    outline: none;
}

.card a.block-link:focus-visible {
    box-shadow: 0 0 0 3px var(--ring) inset;
}

.thumb {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: radial-gradient(60px 60px at 40% 30%, rgba(255,255,255,.2), rgba(255,255,255,.08)), linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    display:flex;
    align-items:center;
    justify-content:center;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.thumb img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.thumb .fallback {
    font-size: 34px;
}

.titleRow {
    display:flex;
    align-items:center;
    gap: 10px;
    margin-top: 14px;
}

.titleRow h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing:.2px;
}

.desc {
    color: var(--muted);
    margin: 10px 0 14px;
    line-height: 1.45;
    font-weight: normal;
}

.btn {
    display:inline-flex;
    gap:8px;
    align-items:center;
    padding: 10px 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    text-decoration: none;
}

.btn .icon {
    transform: translateX(0);
    transition: transform .2s ease;
}

.block-link.disabled:hover .btn {
    background: rgba(255,255,255,.06);
}

.block-link:not(.disabled):hover .btn .icon {
    transform: translateX(3px);
}

.badge {
    position:absolute;
    top:12px;
    right:12px;
    background: linear-gradient(135deg, rgba(234,179,8,.9), rgba(234,179,8,.65));
    color:#1a1200;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    letter-spacing:.3px;
    border: 1px solid rgba(0,0,0,.08);
}

.block-link.disabled {
    opacity: .6;
}

.card.disabled .btn,
.block-link.disabled {
    pointer-events:none;
}

.card.disabled .btn {
    pointer-events:none;
}

footer {
    margin-top: 36px;
}
