/* ── Site Footer ───────────────────────────────────────────── */

.site-footer {
    color: #cbd5e1;
    margin-top: 3rem;
    position: relative;
}

/* Dark mode footer gradient */
[data-theme="dark"] .site-footer {
    background: linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
}

/* Light mode footer gradient */
[data-theme="light"] .site-footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

/* Subtle top fade separator */
.site-footer::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 15px;
}

.footer-col h4 {
    color: #f1f5f9;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-col a:hover { color: #e2e8f0; }

.footer-links {
    list-style: none;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
    display: block;
    padding: 2px 0;
}

/* ── Footer Bottom Bar ────────────────────────────────────── */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 15px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #64748b;
}

.footer-bottom-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
}

.footer-credit a {
    color: #94a3b8;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-credit a:hover { color: #e2e8f0; }

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

.footer-bottom-links a {
    color: #64748b;
    font-size: 0.8rem;
}
.footer-bottom-links a:hover { color: #e2e8f0; }

/* ── Legal / Responsible Gambling ─────────────────────────── */
.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1rem 15px;
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.75rem;
    color: #475569;
    text-align: center;
    line-height: 1.6;
}

.responsible-gambling {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.rg-images {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}
.rg-images img {
    height: 36px;
    width: auto;
    max-width: 185px;
    opacity: .7;
    transition: opacity .2s;
}
.rg-images img:hover { opacity: 1; }
[data-theme="dark"] .rg-images img { filter: brightness(1.2); }
@media (max-width: 480px) {
    .rg-images { flex-wrap: wrap; gap: 12px; }
    .rg-images img { height: 28px; }
}

.rg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.15);
}

.rg-link {
    font-size: 0.75rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.rg-link:hover { color: #e2e8f0; }

.rg-text {
    font-size: 0.75rem;
    color: #475569;
    font-style: italic;
}

/* ── Social Links ─────────────────────────────────────────── */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #94a3b8;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-social a svg { display: block; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 800px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 1.5rem 15px;
        text-align: center;
    }

    /* About spans full width */
    .footer-col:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-col h4 { margin-bottom: 0.6rem; font-size: 0.8rem; }
    .footer-links li { margin-bottom: 5px; }
    .footer-links a { font-size: 0.8rem; }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-social { justify-content: center; }
    .footer-legal { padding: 0.75rem 15px; }
    .responsible-gambling { gap: 10px; }
}
