/* © HorrorJunk */
/* coded by nya & suzunay */

/* ──────────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────────── */

footer {
    margin-top: 60px;
    background: linear-gradient(180deg, rgba(11, 17, 32, 0) 0%, rgba(8, 12, 24, 1) 6%);
    color: #c9d1d9;
    font-family: 'Poppins', 'Fredoka', sans-serif;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 163, 255, 0.4), transparent);
}

footer a {
    text-decoration: none;
}

/* ── Top section with grid ── */

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

/* ── Brand column ── */

.footer-brand-col {
    padding-right: 20px;
}

.footer-logo img {
    height: 28px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-logo:hover img {
    opacity: 1;
}

.footer-desc {
    margin: 16px 0 24px;
    font-size: 13px;
    line-height: 1.7;
    color: #8b949e;
}

/* ── Social icons ── */

.footer-socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8b949e;
    font-size: 15px;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
    background: rgba(0, 163, 255, 0.12);
    border-color: rgba(0, 163, 255, 0.35);
    color: #00a3ff;
    transform: translateY(-2px);
}

/* ── Link columns ── */

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fff;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: #00a3ff;
    border-radius: 2px;
}

.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-list a {
    color: #8b949e;
    font-size: 13.5px;
    transition: color 0.25s, padding-left 0.25s;
    display: inline-block;
}

.footer-link-list a:hover {
    color: #00a3ff;
    padding-left: 4px;
}

/* ── Bottom bar ── */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
    color: #545d68;
    letter-spacing: 0.3px;
    width: 100%;
    text-align: center;
}

/* ── Status link ── */

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8b949e;
    font-size: 13.5px;
    transition: color 0.25s;
    white-space: nowrap;
    position: absolute;
    right: 30px;
}

.footer-status:hover {
    color: #00a3ff;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(34, 197, 94, 0.4); opacity: 1; }
    50% { box-shadow: 0 0 12px rgba(34, 197, 94, 0.8); opacity: 0.7; }
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }

    .footer-logo {
        display: inline-block;
    }

    .footer-desc {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-socials {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-top {
        padding: 40px 20px 30px;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-link-list {
        align-items: center;
    }

    .footer-link-list a:hover {
        padding-left: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-status {
        position: static;
    }

    footer::before {
        width: 80%;
    }
}

/* ──────────────────────────────────────────────────────────────
   NEWSLETTER POPUP
   ────────────────────────────────────────────────────────────── */

#newsletter-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 440px;
    background: #0c1018;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 24px 20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    font-family: 'Poppins', 'Fredoka', sans-serif;
    animation: nlSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes nlSlideIn {
    from { transform: translateY(40px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ── Header ── */

#newsletter-popup .nl-header {
    position: relative;
    padding: 32px 32px 24px;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 163, 255, 0.1) 0%, transparent 70%),
        linear-gradient(180deg, rgba(0, 163, 255, 0.04) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#newsletter-popup .nl-logo {
    height: 34px;
    width: auto;
    max-width: 280px;
    opacity: 0.9;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
}

#newsletter-popup .nl-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(0, 163, 255, 0.1);
    border: 1px solid rgba(0, 163, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #00a3ff;
    margin: 0 auto 16px;
}

#newsletter-popup .nl-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

#newsletter-popup .nl-desc {
    color: #7d8590;
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.55;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Body ── */

#newsletter-popup .nl-body {
    padding: 24px 32px 28px;
}

#newsletter-popup .nl-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

#newsletter-popup .nl-input {
    flex: 1;
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 14px;
    font-family: 'Poppins', 'Fredoka', sans-serif;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 0;
}

#newsletter-popup .nl-input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

#newsletter-popup .nl-input:focus {
    border-color: rgba(0, 163, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 163, 255, 0.08);
}

/* nl-btn uses hj-btn system – keep layout overrides only */
#newsletter-popup .nl-btn {
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 12px;
}

#newsletter-popup .nl-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Full-width button fallback (logged-in users) */
#newsletter-popup .nl-body > .nl-btn {
    width: 100%;
}

#newsletter-popup .nl-dismiss {
    display: block;
    text-align: center;
    color: #484f58;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

#newsletter-popup .nl-dismiss:hover {
    color: #7d8590;
}

#newsletter-popup .nl-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #3d444d;
    font-size: 11px;
    margin-top: 6px;
}

#newsletter-popup .nl-privacy i {
    font-size: 10px;
}

/* ── Close button ── */

#newsletter-popup .nl-close {
    position: absolute;
    top: 14px;
    right: 14px;
    color: #484f58;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}

#newsletter-popup .nl-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ── Logged-in email display ── */

#newsletter-popup .nl-user-email {
    color: #00a3ff;
    font-size: 13px;
    margin-bottom: 14px;
    word-break: break-all;
    padding: 10px 14px;
    background: rgba(0, 163, 255, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(0, 163, 255, 0.12);
    text-align: center;
}

/* ── Responsive ── */

@media (max-width: 520px) {
    #newsletter-popup {
        width: calc(100% - 24px);
        right: 12px;
        bottom: 12px;
        border-radius: 16px;
    }

    #newsletter-popup .nl-header {
        padding: 24px 24px 18px;
    }

    #newsletter-popup .nl-logo {
        height: 28px;
        max-width: 230px;
    }

    #newsletter-popup .nl-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        margin-bottom: 12px;
    }

    #newsletter-popup .nl-title {
        font-size: 17px;
    }

    #newsletter-popup .nl-desc {
        font-size: 13px;
    }

    #newsletter-popup .nl-body {
        padding: 18px 24px 22px;
    }

    #newsletter-popup .nl-input-row {
        flex-direction: column;
        gap: 10px;
    }

    #newsletter-popup .nl-btn {
        width: 100%;
    }
}
