/* ============================================================
   EcoAnalyzer — Additional Styles (Footer, etc.)
   ============================================================ */

/* Extended footer styles */
.footer-modern {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-brand);
}

.footer-brand-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 12px;
    max-width: 260px;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 4px; }

.footer-link {
    display: flex; align-items: center; gap: 6px;
    color: var(--text-body);
    font-size: 0.875rem; font-weight: 500;
    padding: 4px 0;
    transition: var(--transition-fast);
    text-decoration: none;
}

.footer-link:hover { color: var(--primary); padding-left: 4px; text-decoration: none; }

.footer-divider { border-color: var(--border); margin: 40px 0 24px; }
.footer-legal { font-size: 0.8125rem; color: var(--text-muted); }
.footer-legal .fas.fa-heart { color: var(--danger); animation: heartbeat 2s ease-in-out infinite; }

/* Feedback textarea in footer */
.footer-modern .form-control {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-heading);
    font-size: 0.875rem;
}

.footer-modern .form-control:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* Flash messages */
.flash-container {
    position: fixed;
    top: calc(var(--navbar-height) + 12px);
    right: 16px;
    z-index: 1100;
    display: flex; flex-direction: column; gap: 8px;
    max-width: 380px;
}

.flash-message {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid transparent;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
    font-size: 0.875rem; font-weight: 500;
}

.flash-message.success { background: var(--card-bg); border-color: var(--primary); }
.flash-message.error { background: var(--card-bg); border-color: var(--danger); }
.flash-message.warning { background: var(--card-bg); border-color: var(--accent); }

.flash-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.flash-message.success .flash-icon { color: var(--primary); }
.flash-message.error .flash-icon { color: var(--danger); }
.flash-message.warning .flash-icon { color: var(--accent); }

/* Voice Input */
.voice-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
}

.voice-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.voice-icon {
    width: 80px; height: 80px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2rem;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(22,163,74,0.3);
    transition: var(--transition);
}

.voice-icon.recording {
    animation: pulse-glow 1.5s ease-in-out infinite;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 8px 24px rgba(239,68,68,0.4);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
    50%       { box-shadow: 0 0 0 16px rgba(22,163,74,0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Error page */
.error-container {
    min-height: calc(100vh - var(--navbar-height));
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px; text-align: center;
}

.error-code {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 8rem; font-weight: 900;
    color: var(--border-strong);
    letter-spacing: -0.06em;
    line-height: 1;
    margin-bottom: 16px;
}

.error-title { font-size: 1.75rem; font-weight: 800; color: var(--text-heading); margin-bottom: 12px; }
.error-message { color: var(--text-muted); font-size: 1rem; margin-bottom: 32px; }
