/* ============================================
   AI Labs Audit - Footer Styles
   Shared across all pages (public + authenticated)
   ============================================ */

/* ============================================
   Main Footer Container
   ============================================ */
.modern-footer {
    background: linear-gradient(180deg, #0a0a14 0%, #12121f 100%);
    color: #fff;
    margin-top: 0;
}

.footer-main {
    padding: 80px 0 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   Footer Grid & Columns
   ============================================ */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-brand {
    padding-right: 40px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-column {
    min-width: 0;
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(4px);
}

/* ============================================
   Social Links
   ============================================ */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* ============================================
   Newsletter Bar
   ============================================ */
.footer-newsletter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 28px;
    margin-bottom: 48px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 16px;
}

.newsletter-bar-text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    white-space: nowrap;
}

.newsletter-bar-text i {
    font-size: 1.3rem;
    color: var(--primary-light);
}

.newsletter-bar-text strong {
    color: #fff;
}

.newsletter-bar-form {
    flex-shrink: 0;
    min-width: 320px;
}

.newsletter-input-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.newsletter-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 16px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-btn {
    background: var(--gradient-primary);
    border: none;
    padding: 14px 18px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.newsletter-btn i {
    font-size: 1rem;
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Newsletter Messages */
.newsletter-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.newsletter-success i {
    color: #22c55e;
}

.newsletter-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.newsletter-error i {
    color: #ef4444;
}

/* ============================================
   Footer Bottom / Copyright / Badges
   ============================================ */
.footer-bottom {
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 16px;
    order: -1;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-item i {
    color: var(--primary-light);
}

.made-with i {
    color: #ef4444;
    margin: 0 4px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============================================
   Print
   ============================================ */
@media print {
    .modern-footer {
        display: none !important;
    }
}

/* ============================================
   Responsive Overrides
   ============================================ */

/* --- 1200px --- */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }

    .footer-column:nth-child(4) {
        display: none;
    }
}

/* --- 991px --- */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }

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

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

    .footer-newsletter-bar {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .newsletter-bar-text {
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .newsletter-bar-form {
        min-width: 0;
        width: 100%;
        max-width: 400px;
    }
}

/* --- 768px --- */
@media (max-width: 768px) {
    .modern-footer {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .footer-grid {
        overflow: hidden;
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-main {
        padding: 60px 0 40px;
    }

    .footer-newsletter-bar {
        padding: 16px 20px;
        margin-bottom: 36px;
    }

    .newsletter-bar-form {
        max-width: 100%;
    }

    .footer-links a:hover {
        transform: none;
    }

    .footer-bottom-content {
        text-align: center;
    }
}

/* --- 480px --- */
@media (max-width: 480px) {
    .footer-main {
        padding: 50px 0 40px;
    }

    .footer-logo img {
        height: 32px;
    }

    .footer-logo span {
        font-size: 1.1rem;
    }

    .newsletter-input {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .newsletter-btn {
        padding: 12px 14px;
    }

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

    .badge-item {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}
