/**
 * Unified Footer Styles
 * Single source of truth for footer styling across all pages
 * Matches the OptinAmpOut homepage footer design
 */

/* CSS Variables for consistency */
:root {
    --space-black: #0a0e27;
    --void-dark: #1a1d3a;
    --cosmic-gray: #b4b8c5;
    --energy-orange: #FF6B35;
    --neon-cyan: #00B4D8;
    --plasma-blue: #48CAE4;
}

/* Footer Main Container */
.footer {
    background:
        linear-gradient(135deg, var(--space-black) 0%, var(--void-dark) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 8px,
            rgba(255, 107, 53, 0.05) 10px
        );
    color: var(--cosmic-gray);
    padding: 60px 40px 30px;
    border-top: 3px solid var(--energy-orange);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: pulse-energy 2s infinite;
}

/* Footer Container */
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Footer Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* Footer Sections */
.footer-section {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Footer Logo */
.footer-logo-link {
    text-decoration: none !important;
    display: inline-block;
}

.footer-logo-link:hover {
    text-decoration: none !important;
}

.footer-logo {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.footer-logo .optin {
    color: #00B4D8;
}

.footer-logo .amp {
    color: var(--energy-orange);
}

.footer-logo .out {
    color: var(--plasma-blue);
}

/* Footer Tagline & Description */
.footer-tagline {
    color: var(--neon-cyan);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-description {
    color: var(--cosmic-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Footer Titles */
.footer-title {
    color: var(--energy-orange);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--cosmic-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--neon-cyan);
    transform: translateX(5px);
}

/* Footer Contact Section */
.footer-contact {
    color: var(--cosmic-gray);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-icon {
    font-size: 18px;
}

.contact-item a {
    color: var(--cosmic-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--neon-cyan);
}

/* Footer Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    color: var(--cosmic-gray);
    font-size: 14px;
    margin: 0;
}

/* Footer Legal Links */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-legal a {
    color: var(--cosmic-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--neon-cyan);
}

.separator {
    color: var(--cosmic-gray);
    opacity: 0.5;
}

/* Footer Status Indicator */
.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--cosmic-gray);
}

.status-indicator {
    color: var(--neon-cyan);
    font-size: 10px;
    animation: pulse-energy 2s infinite;
}

/* Animations */
@keyframes pulse-energy {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

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

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        font-size: 20px;
    }

    .footer-title {
        font-size: 16px;
    }

    .footer-tagline,
    .footer-description,
    .footer-links a,
    .footer-copyright p,
    .footer-legal a {
        font-size: 13px;
    }
}
