/**
 * ============================================================
 * Author:    DARK-MASTER
 * Studio:    DARK DIGITAL STUDIO
 * Site:      dark-digital-studio.com
 * Email:     Service.Dark.Digital.studio@gmail.com
 * WhatsApp:  +905378664534
 * Telegram:  https://t.me/DARK_Digital_Studio
 * GitHub:    github.com/DARK-MASTER-0
 *
 * Copyright (c) 2018-2026 Dark Digital Studio. All Rights Reserved.
 * Unauthorized copying, distribution, or use of this software,
 * in whole or in part, is strictly prohibited without prior
 * written permission from the author.
 * ============================================================
 */
/* ========================================================================
   Footer & Theme Prompt
   ======================================================================== */
.site-footer {
    position: relative;
    z-index: 2;
    background:
        radial-gradient(circle at 18% -10%, rgba(111, 199, 255, 0.32), transparent 62%),
        radial-gradient(circle at 82% 2%, rgba(13, 125, 220, 0.28), transparent 68%),
        var(--color-bg);
    color: var(--color-text);
    padding: 100px 0 32px;
}

.footer-top {
    width: var(--container);
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr);
    gap: 36px;
}

.footer-brand img {
    width: 80px;
    height: 80px;
    margin-bottom: 18px;
}

.footer-brand p {
    color: rgba(221, 236, 255, 0.75);
    max-width: 260px;
}

.footer-links h3,
.footer-newsletter h3 {
    margin: 0 0 18px;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(221, 236, 255, 0.78);
}

.footer-links a:hover {
    color: var(--color-on-primary);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(111, 199, 255, 0.35);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    color: rgba(221, 236, 255, 0.86);
    background: rgba(111, 199, 255, 0.08);
    transition: color 0.3s ease, border 0.3s ease, transform 0.3s ease;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    position: relative;
    z-index: 1;
}
.footer-social a img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    border-radius: 2px;
}
.footer-social a::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(120deg, #1f72f2, #6ec7ff, #8f53ff, #1f72f2);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.footer-social a:hover {
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-social a:hover::before {
    opacity: 1;
    animation: footerSocialOrbit 3s linear infinite;
}

.footer-bottom {
    width: var(--container);
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid rgba(111, 199, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    margin: 0;
    color: rgba(221, 236, 255, 0.76);
}

.footer-legal {
    display: flex;
    gap: 18px;
}

.footer-legal a {
    color: rgba(221, 236, 255, 0.78);
}

.footer-legal a:hover {
    color: var(--color-on-primary);
}

html[data-theme="light"] .site-footer,
body[data-theme="light"] .site-footer {
    background:
        radial-gradient(circle at 16% -12%, rgba(13, 125, 220, 0.14), transparent 62%),
        radial-gradient(circle at 88% 0%, rgba(111, 199, 255, 0.12), transparent 68%),
        var(--color-bg);
    color: var(--color-text);
}

html[data-theme="light"] .footer-brand p,
body[data-theme="light"] .footer-brand p {
    color: var(--color-muted);
}

html[data-theme="light"] .footer-links a,
body[data-theme="light"] .footer-links a {
    color: var(--color-text-soft);
}

html[data-theme="light"] .footer-links a:hover,
body[data-theme="light"] .footer-links a:hover {
    color: var(--color-primary);
}

html[data-theme="light"] .footer-social a,
body[data-theme="light"] .footer-social a {
    border-color: rgba(13, 125, 220, 0.24);
    background: rgba(13, 125, 220, 0.08);
    color: var(--color-text-soft);
}

html[data-theme="light"] .footer-social a:hover,
body[data-theme="light"] .footer-social a:hover {
    color: var(--color-on-primary);
}

html[data-theme="light"] .footer-bottom,
body[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(13, 125, 220, 0.18);
}

html[data-theme="light"] .footer-bottom p,
body[data-theme="light"] .footer-bottom p {
    color: var(--color-text-soft);
}

html[data-theme="light"] .footer-legal a,
body[data-theme="light"] .footer-legal a {
    color: var(--color-text-soft);
}

html[data-theme="light"] .footer-legal a:hover,
body[data-theme="light"] .footer-legal a:hover {
    color: var(--color-primary);
}

@keyframes footerSocialOrbit {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.theme-prompt {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 8, 0.45);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

.theme-prompt[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.theme-prompt-content {
    background: var(--color-bg-soft);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-raised);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 360px;
    text-align: center;
}

.theme-prompt-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
