/* ════════════════════════════════════════════════
   Footer, Utilities & Responsive Breakpoints
   ════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
    text-align: center; padding: 28px 24px;
    font-size: 13px; color: var(--text-muted);
    border-top: 1px solid var(--border);
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-brand { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--text-secondary, #94a3b8); }
.footer-accent { color: #a78bfa; }
.footer-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.footer-link { display: inline-flex; align-items: center; gap: 5px; color: var(--text-secondary, #94a3b8); text-decoration: none; font-size: 12px; font-weight: 500; transition: color 0.2s; }
.footer-link:hover { color: #a78bfa; }
.footer-link svg { flex-shrink: 0; }
.footer-copy { margin: 0; font-size: 11px; color: var(--text-muted, #64748b); }
.light-mode .footer-brand { color: #475569; }
.light-mode .footer-link { color: #64748b; }
.light-mode .footer-link:hover { color: #7c3aed; }
.light-mode .footer-copy { color: #94a3b8; }

/* ═══════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════ */
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .results-grid { grid-template-columns: 360px 1fr; }
}

@media (max-width: 900px) {
    .results-grid { grid-template-columns: 1fr; }
    .video-column { position: static; }
    .video-header-top { flex-wrap: wrap; }
    .new-video-btn { align-self: flex-start; }
}

@media (max-width: 640px) {
    .features { grid-template-columns: 1fr; }
    .hero-title { letter-spacing: -1px; }
    .hero { padding: 60px 20px 40px; }
    .btn-text { display: none; }
    .search-btn { padding: 13px 16px; }
    .results-breakdown { gap: 20px; }
}

/* ═══════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════ */
.btt-btn {
    position: fixed;
    bottom: 32px;
    right: 28px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    background: rgba(18, 18, 42, 0.85);
    backdrop-filter: blur(12px);
    color: #a78bfa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s, border-color 0.15s;
}
.btt-btn.btt-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.btt-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.25), 0 0 0 1px rgba(139, 92, 246, 0.15);
}
.btt-btn:active {
    transform: translateY(0);
}
.btt-btn svg {
    flex-shrink: 0;
}

/* Light mode */
html.light-mode .btt-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(109, 40, 217, 0.15);
    color: #7c3aed;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(109, 40, 217, 0.06);
}
html.light-mode .btt-btn:hover {
    background: rgba(109, 40, 217, 0.08);
    border-color: rgba(109, 40, 217, 0.3);
    color: #6d28d9;
}

/* Mobile: smaller + closer to edge */
@media (max-width: 640px) {
    .btt-btn {
        bottom: 80px; /* above mobile bottom nav */
        right: 16px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
}

