/* ==================================================
   Aya Blocks World PWA App Theme
   Premium Black / Gold / Ghana Accent
   Used by login, register, unlock, leaderboard,
   referrals, help, profile, index, and general pages.
================================================== */

:root {
    --bg: #121212;
    --bg-deep: #000000;
    --bg-soft: #1a1a1a;

    --panel: #1a1a1a;
    --panel2: #0b0b0b;
    --panel-soft: rgba(255, 255, 255, 0.035);

    --text: #ffffff;
    --muted: #b0b0b0;

    --gold: #d4af37;
    --gold-bright: #fcd116;
    --gold-soft: rgba(212, 175, 55, 0.16);

    --accent: #006b3f;
    --success: #10b981;
    --danger: #e60023;

    --ghana-red: #ff0000;
    --ghana-yellow: #fcd116;
    --ghana-green: #006b3f;

    --line: rgba(212, 175, 55, 0.34);
    --line-soft: rgba(255, 255, 255, 0.08);

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;

    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.48);
    --shadow-gold: 0 4px 15px rgba(212, 175, 55, 0.28);
}

/* ==================================================
   BASE
================================================== */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(212, 175, 55, 0.12), transparent 34%),
        linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
    color: var(--text);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

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

/* ==================================================
   HEADER / NAV
================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.brand {
    font-weight: 900;
    text-decoration: none;
    font-size: 20px;
    color: var(--gold-bright);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

nav a,
.site-footer a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

nav a:hover,
.site-footer a:hover {
    color: var(--gold-bright);
}

/* ==================================================
   MAIN / FOOTER
================================================== */

main {
    width: min(1040px, 100%);
    margin: 0 auto;
    padding: 22px 16px;
}

.site-footer {
    padding: 28px 18px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 18px;
    color: var(--muted);
}

/* ==================================================
   HERO
================================================== */

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
    padding: 28px 0;
}

.hero h1 {
    font-size: clamp(36px, 8vw, 72px);
    line-height: 0.95;
    margin: 0 0 16px;
    color: #ffffff;
    letter-spacing: -0.04em;
}

.hero p {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.5;
}

/* ==================================================
   CARDS / PANELS
================================================== */

.card {
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel2) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-card);
    color: var(--text);
}

.card h1,
.card h2,
.card h3 {
    color: var(--gold-bright);
    margin-top: 0;
}

.card p {
    color: var(--muted);
    line-height: 1.55;
}

.muted {
    color: var(--muted);
}

/* ==================================================
   BUTTONS
================================================== */

.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    background: var(--gold);
    color: #000000;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-gold);
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--gold-bright);
}

.btn:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: scale(0.98);
}

.btn.secondary,
button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.btn.secondary:hover,
button.secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

.btn.danger,
button.danger {
    background: var(--danger);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.25);
}

.btn.block,
button.block,
input[type="submit"].block {
    width: 100%;
    display: flex;
}

/* ==================================================
   GRID
================================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ==================================================
   FORMS
================================================== */

.form {
    display: grid;
    gap: 14px;
    max-width: 460px;
    margin: 20px auto;
}

.form label,
label {
    display: block;
    margin-bottom: 6px;
    color: var(--gold-bright);
    font-size: 13px;
    font-weight: 800;
}

.form input,
.form select,
.form textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 16px;
    outline: none;
}

.form input::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.form input:focus,
.form select:focus,
.form textarea:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold-bright);
    box-shadow: 0 0 0 3px rgba(252, 209, 22, 0.14);
}

/* ==================================================
   ALERTS
================================================== */

.alert,
.success {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.alert {
    background: rgba(230, 0, 35, 0.12);
    border: 1px solid rgba(230, 0, 35, 0.35);
    color: #ffb3be;
}

.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #a7f3d0;
}

/* ==================================================
   TABLES / LEADERBOARD
================================================== */

.table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text);
}

.table th,
.table td {
    padding: 12px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
}

.table th {
    color: var(--gold-bright);
    font-size: 13px;
    text-transform: uppercase;
}

.table td {
    color: var(--muted);
}

/* ==================================================
   BANNERS
================================================== */

.banner {
    display: block;
    margin: 16px 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #000000;
    box-shadow: var(--shadow-card);
}

.banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==================================================
   GHANA FLAG DIVIDER
================================================== */

.flag-divider {
    height: 4px;
    width: 72px;
    margin: 18px auto;
    display: flex;
    border-radius: 999px;
    overflow: hidden;
}

.flag-red,
.red {
    background: var(--ghana-red);
    flex: 1;
}

.flag-yellow,
.yellow {
    background: var(--ghana-yellow);
    flex: 1;
}

.flag-green,
.green {
    background: var(--ghana-green);
    flex: 1;
}

/* ==================================================
   AUTH PAGE HELPERS
================================================== */

.auth-wrap {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 22px 16px;
}

.auth-title {
    color: var(--gold-bright);
    text-align: center;
    margin: 0 0 12px;
}

.auth-subtitle {
    color: var(--muted);
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* ==================================================
   RESPONSIVE
================================================== */

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

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

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    main {
        padding: 16px 12px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 12px 14px;
    }

    .brand {
        font-size: 18px;
    }

    nav {
        gap: 10px;
    }

    nav a,
    .site-footer a {
        font-size: 13px;
    }

    .card {
        border-radius: 22px;
        padding: 18px;
    }

    .btn,
    button,
    input[type="submit"],
    input[type="button"] {
        width: 100%;
        min-height: 42px;
        font-size: 12px;
        padding: 12px 14px;
    }

    .site-footer {
        flex-wrap: wrap;
    }
}

/* ==================================================
   Sponsored Banner Zones
================================================== */

.ad-zone {
    width: 100%;
    margin: 18px auto;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(255,255,255,0.035);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.ad-zone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.ad-zone a {
    display: block;
    text-decoration: none;
}

.ad-label {
    color: var(--muted, #b0b0b0);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 6px;
    text-align: right;
}

.ad-zone-small {
    max-width: 460px;
}

.ad-zone-wide {
    max-width: 860px;
}

.copyright-footer {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 18px 28px;
    color: var(--muted, #b0b0b0);
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}