/*
 * Nova Theme - Platinum Pro Footer Styles
 * Feature Rich & Professional
 */

/* Main Container */
.nova-footer {
    background: #0f172a !important;
    position: relative;
    padding-top: 0;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

/* Gradient Overlay */
.nova-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(2, 6, 23, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ============================
   NEWSLETTER
   ============================ */
.nova-footer-newsletter {
    position: relative;
    transform: translateY(-50%);
    margin-bottom: -40px;
    z-index: 20;
    padding: 0 15px;
}

.nova-newsletter-wrapper {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    padding: 40px 50px;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

/* Newsletter Pattern */
.nova-newsletter-wrapper::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

.nova-newsletter-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--nova-primary) 0%, var(--nova-primary-dark) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    z-index: 2;
    flex-shrink: 0;
}

.nova-newsletter-content { flex: 1; z-index: 2; }
.nova-newsletter-content h3 { color: white; font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.nova-newsletter-content p { color: #cbd5e1; margin: 0; font-size: 15px; line-height: 1.5; }

.nova-newsletter-form-wrap { flex: 1; max-width: 450px; z-index: 2; }

.nova-newsletter-form .nova-input-group {
    background: white;
    border-radius: 14px;
    padding: 5px;
    display: flex;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nova-newsletter-form input {
    border: none;
    background: transparent;
    padding: 12px 20px;
    flex: 1;
    font-size: 15px;
    color: #0f172a;
}
.nova-newsletter-form input:focus { outline: none; }

.nova-newsletter-form button {
    background: #0f172a;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.nova-newsletter-form button:hover { background: var(--nova-primary); }

.nova-privacy-note {
    font-size: 12px;
    color: #64748b;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================
   MAIN FOOTER GRID
   ============================ */
.nova-footer-main {
    padding: 80px 0 40px;
    position: relative;
    z-index: 10;
}

.nova-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Custom Proportions */
    gap: 50px;
}

/* Brand Column */
.nova-footer-brand-col { max-width: 350px; }
.nova-footer-logo img { height: 38px; width: auto; margin-bottom: 20px; }
.nova-footer-desc { color: #94a3b8; font-size: 14px; line-height: 1.7; margin-bottom: 25px; }

/* App Buttons */
.nova-app-buttons { display: flex; gap: 10px; margin-bottom: 25px; }
.app-btn {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s;
}
.app-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); border-color: rgba(255,255,255,0.2); }
.app-btn i { font-size: 20px; color: white; }
.app-btn .app-text { display: flex; flex-direction: column; line-height: 1.1; }
.app-btn .app-text span { font-size: 10px; color: #94a3b8; }
.app-btn .app-text b { font-size: 13px; color: white; font-weight: 600; }

/* Social Buttons */
.nova-footer-social { display: flex; gap: 10px; }
.social-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; transition: all 0.3s;
    font-size: 14px;
}
.social-btn:hover { color: white; background: var(--nova-primary); transform: translateY(-3px); }

/* Links */
.nova-footer-links-col h4, .nova-footer-contact-col h4 {
    color: white; font-size: 18px; font-weight: 700;
    margin-bottom: 25px;
    position: relative; padding-left: 15px;
}
.nova-footer-links-col h4::before, .nova-footer-contact-col h4::before {
    content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
    width: 4px; background: var(--nova-primary); border-radius: 2px;
}

.nova-footer-links-col ul li { margin-bottom: 12px; }
.nova-footer-links-col ul li a {
    color: #94a3b8; text-decoration: none; font-size: 14px; transition: 0.2s;
    display: flex; align-items: center; gap: 8px;
}
.nova-footer-links-col ul li a:hover { color: white; padding-left: 5px; }
.nova-footer-links-col ul li a::before {
    content: '›'; font-size: 18px; color: var(--nova-primary); opacity: 0; transition: 0.2s;
}
.nova-footer-links-col ul li a:hover::before { opacity: 1; }

/* Contact Specifics */
.nova-contact-list li { display: flex; gap: 15px; margin-bottom: 20px; }
.nova-contact-list .contact-icon {
    width: 42px; height: 42px; background: rgba(37,99,235,0.1);
    color: var(--nova-primary); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.nova-contact-list .contact-info span { display: block; font-size: 11px; text-transform: uppercase; color: #64748b; font-weight: 700; margin-bottom: 3px; }
.nova-contact-list .contact-info a, .nova-contact-list .contact-info p {
    color: #e2e8f0; font-size: 14px; font-weight: 500; text-decoration: none;
}
.phone-link { font-size: 16px !important; font-weight: 700 !important; color: white !important; }

/* System Status */
.nova-system-status {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 10px 15px; border-radius: 8px;
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 10px;
}
.pulse-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; box-shadow: 0 0 0 rgba(16, 185, 129, 0.4); animation: pulse-green 2s infinite; }
.nova-system-status span { font-size: 13px; color: #cbd5e1; }
.text-success { color: #10b981; }

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ============================
   BOTTOM BAR
   ============================ */
.nova-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0;
    background: #020617;
    position: relative; z-index: 11;
}
.nova-bottom-flex { display: flex; justify-content: space-between; align-items: center; }

.nova-copyright p { color: #64748b; font-size: 13px; margin: 0; }
.nova-copyright strong { color: #e2e8f0; }
.nova-brand-plug { opacity: 0.6; transform: scale(0.9); transform-origin: left center; margin-top: 5px; }

.nova-trust-section { display: flex; align-items: center; gap: 20px; }
.nova-security-badges {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.03); padding: 5px 12px; border-radius: 20px;
    font-size: 12px; color: #94a3b8; border: 1px solid rgba(255,255,255,0.05);
}
.nova-security-badges i { color: var(--nova-primary); }

.nova-payment-logos { display: flex; align-items: center; gap: 12px; color: #64748b; font-size: 20px; }
.nova-payment-logos i:hover { color: white; transform: translateY(-2px); transition: 0.3s; }
.divider { width: 1px; height: 16px; background: rgba(255,255,255,0.1); }

/* ============================
   LIGHT MODE OVERRIDES
   ============================ */
[data-theme="light"] .nova-footer { background: #f8fafc !important; border-top-color: #cbd5e1; }
[data-theme="light"] .nova-footer::after { display: none; }

[data-theme="light"] .nova-newsletter-wrapper { background: white; border: 1px solid #cbd5e1; box-shadow: 0 20px 40px rgba(148, 163, 184, 0.15); }
[data-theme="light"] .nova-newsletter-content h3 { color: #0f172a; }
[data-theme="light"] .nova-newsletter-form-wrap .nova-input-group { background: #f1f5f9; border: 1px solid #e2e8f0; }

[data-theme="light"] .nova-footer-desc { color: #475569; }
[data-theme="light"] .app-btn { background: white; border-color: #cbd5e1; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
[data-theme="light"] .app-btn i { color: #0f172a; }
[data-theme="light"] .app-btn .app-text span { color: #64748b; }
[data-theme="light"] .app-btn .app-text b { color: #0f172a; }

[data-theme="light"] .social-btn { background: white; border: 1px solid #e2e8f0; color: #64748b; }

[data-theme="light"] h4 { color: #0f172a; }
[data-theme="light"] .nova-footer-links-col ul li a { color: #475569; }
[data-theme="light"] .nova-footer-links-col ul li a:hover { color: var(--nova-primary); }

[data-theme="light"] .nova-contact-list .contact-info a { color: #334155; }
[data-theme="light"] .phone-link { color: #0f172a !important; }

[data-theme="light"] .nova-footer-bottom { background: white; border-top-color: #e2e8f0; }
[data-theme="light"] .nova-copyright p { color: #64748b; }
[data-theme="light"] .nova-security-badges { background: #f1f5f9; border-color: #e2e8f0; color: #475569; }

/* Responsive */
@media (max-width: 992px) {
    .nova-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .nova-footer-brand-col { grid-column: span 2; max-width: 100%; text-align: center; }
    .nova-app-buttons { justify-content: center; max-width: 300px; margin: 0 auto 25px; }
    .nova-footer-social { justify-content: center; }
    .nova-newsletter-wrapper { flex-direction: column; text-align: center; gap: 20px; }
    .nova-newsletter-form-wrap { width: 100%; }
}
@media (max-width: 576px) {
    .nova-footer-grid { grid-template-columns: 1fr; }
    .nova-footer-links-col, .nova-footer-contact-col { text-align: center; }
    .nova-footer-links-col h4::before, .nova-footer-contact-col h4::before { display: none; }
    .nova-contact-list li { justify-content: center; }
    .nova-bottom-flex { flex-direction: column; gap: 20px; text-align: center; }
}

/* BACK TO TOP (Preserve) */
.nova-back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px;
    background: var(--nova-primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; cursor: pointer; box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
    z-index: 99; opacity: 0; visibility: hidden; transition: all 0.3s; text-decoration: none;
}
.nova-back-to-top.visible { opacity: 1; visibility: visible; }
.nova-back-to-top:hover { transform: translateY(-5px); background: var(--nova-primary-dark); color: white; }
