/* ============================================================
   SILVERSWAP — INDUSTRIAL SILVER EXCHANGE THEME
   A modern, metallic, vault-inspired UI aesthetic
   ============================================================ */

/* --- Colour System --- */
:root {
    --bg-dark: #111214;
    --bg-panel: rgba(255, 255, 255, 0.03);
    --bg-panel-strong: rgba(255, 255, 255, 0.06);

    --silver: #d9d9d9;
    --silver-soft: #bfc3c7;
    --silver-glow: #e8eef2;

    --accent: #9ec7ff; /* cold steel-blue highlight */
    --accent-strong: #c7e2ff;

    --border-light: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);

    --shadow: rgba(0, 0, 0, 0.45);
}

/* ============================================================
   GLOBAL
   ============================================================ */

body {
    background: var(--bg-dark);

    /* Subtle brushed-metal texture */
    background-image:
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 4px 4px;

    color: var(--silver);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;

    padding-top: 80px; /* ensures content sits below the header */
}

/* Typography scale */
h1, h2, h3 {
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0;
}

p {
    color: var(--silver-soft);
}

/* ============================================================
   BRAND HEADER — SilverSwap identity bar
   ============================================================ */

.site-header {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(12px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--silver);
    letter-spacing: 1px;
    text-transform: none;
}

/* Spinning silver coin */
.coin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle, #e6e6e6, #bfbfbf, #8c8c8c);
    border: 2px solid var(--silver-soft);
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.4),
        0 0 8px rgba(0,0,0,0.4);
    animation: spin 2s linear infinite;
}

/* 3D spin animation */
@keyframes spin {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(360deg); }
}



/* ============================================================
   HOW IT WORKS (home page)
   ============================================================ */

.how-steps {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    counter-reset: how-counter;
    max-width: 560px;
}

.how-steps li {
    counter-increment: how-counter;
    position: relative;
    padding-left: 2.4rem;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--silver);
    line-height: 1.6;
}

.how-steps li::before {
    content: counter(how-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 1.6rem;
    height: 1.6rem;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: rgba(192, 192, 192, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--silver-glow);
}

.how-steps li strong {
    color: var(--silver-glow);
}

/* ============================================================
   NAVBAR
   ============================================================ */

nav {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 2rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: var(--silver);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: 0.2s ease;
}

nav a:hover {
    color: var(--accent);
}

/* ============================================================
   PANELS / CARDS — Industrial Glass Panels
   ============================================================ */

.card {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;

    backdrop-filter: blur(10px);

    /* Steel-like depth */
    box-shadow:
        inset 0 0 0.5px rgba(255,255,255,0.25),
        0 4px 20px var(--shadow);
}

/* Optional: stronger panel for emphasis */
.card-strong {
    background: var(--bg-panel-strong);
    border: 1px solid var(--border-strong);
}

/* ============================================================
   BUTTONS — Machined Steel Controls
   ============================================================ */

button, .btn {
    background: linear-gradient(145deg, #1a1b1d, #0f0f10);
    border: 1px solid var(--border-light);
    color: var(--silver);
    border-radius: 6px;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    transition: 0.25s ease;
    font-weight: 500;
}

button:hover, .btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(158,199,255,0.4);
    transform: translateY(-1px);
}

/* ============================================================
   LISTINGS / DATA
   ============================================================ */

.listing-header h3 {
    margin: 0;
    color: var(--silver-glow);
    font-weight: 600;
}

.value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--accent);
}

/* ============================================================
   INDUSTRIAL GRID BACKGROUND SECTIONS
   ============================================================ */

.section-grid {
    background-image: radial-gradient(circle at 1px 1px,
        rgba(255,255,255,0.05) 1px,
        transparent 0);
    background-size: 24px 24px;
    padding: 2rem;
    border-radius: 12px;
}

/* ============================================================
   FORMS — Clean, industrial inputs
   ============================================================ */

input, select, textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    color: var(--silver);
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 1rem;
    transition: 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 8px rgba(158,199,255,0.3);
}

input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin-bottom: 0;
    vertical-align: middle;
}

/* ============================================================
   TABLES — Precision trading terminal style
   ============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-light);
}

th {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--silver-soft);
}

tr:hover {
    background: rgba(255,255,255,0.03);
}

/* Accordion container */
.auth-accordion {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

/* Summary pill — silver instead of gold */
.auth-summary {
    cursor: pointer;
    list-style: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--silver);
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    user-select: none;
    white-space: nowrap;
}

.auth-summary::-webkit-details-marker { display: none; }

.auth-summary::after {
    content: "▼";
    margin-left: 8px;
    font-size: 0.65rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
    display: inline-block;
}

.auth-accordion[open] .auth-summary::after {
    transform: rotate(180deg);
}

/* Checklist drops absolute — no page expansion */
.auth-checklist {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 200;
    background: #1a1a1a;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 18px 22px;
    min-width: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    color: var(--silver);
}

.auth-list {
    list-style: disc;
    padding-left: 20px;
    line-height: 1.6;
}

.auth-list li {
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: var(--silver);
}


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

footer {
    text-align: center;
    padding: 2rem;
    color: var(--silver-soft);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-light);
    margin-top: 3rem;
}

#silver-header, .logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

#silver-price {
    font-weight: 600;
    font-size: 1.1rem;
    color: #d0d0d0;
}

.coin {
    width: 28px;
    height: 28px;
}

/* ============================================================
   MOBILE — screens narrower than 768px only
   ============================================================ */

@media (max-width: 768px) {

    body {
        padding-top: 60px;
    }

    /* Header — tighten up */
    .site-header {
        padding: 0.6rem 1rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .spot-label {
        display: none;
    }

    /* Nav — stack vertically */
    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem 1rem;
        gap: 0.4rem;
    }

    nav a, nav button {
        margin-left: 0;
        font-size: 0.95rem;
    }

    /* Trust grid — 2 columns, natural height */
    .trust-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .trust-item {
        padding: 0.8rem 0.6rem;
    }

    /* How it works — full width */
    .how-steps {
        max-width: 100%;
    }

    /* CTA buttons — stack vertically */
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        margin-bottom: 1.5rem;
    }

    .cta-buttons .btn {
        text-align: center;
        padding: 0.9rem 1.2rem;
    }

    /* Container padding */
    .container {
        padding: 0 1rem;
    }

    /* Auth checklist — full width on mobile */
    .auth-checklist {
        min-width: unset;
        width: 90vw;
    }
}

