/* Viral Post Finder Tool Styles — v2.0 */

.search-input:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Post card */
.post-card {
    transition: all 0.2s ease;
}
.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Spinner */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* Skeleton loader */
.skeleton-loading {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   Flame badge — 5 engagement levels
   ============================================================ */

.flame-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px 2px 5px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

/* Level 1 — 1–4 comments: cool white/slate */
.flame-l1 {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.flame-l1 svg { color: #94a3b8; }

/* Level 2 — 5–14 comments: warm yellow */
.flame-l2 {
    background-color: #fefce8;
    color: #854d0e;
    border: 1px solid #fef08a;
}
.flame-l2 svg { color: #eab308; }

/* Level 3 — 15–49 comments: orange */
.flame-l3 {
    background-color: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}
.flame-l3 svg { color: #f97316; }

/* Level 4 — 50–99 comments: vivid red */
.flame-l4 {
    background-color: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}
.flame-l4 svg { color: #ef4444; }

/* Level 5 — 100+ comments: blazing red with shimmer */
.flame-l5 {
    background: linear-gradient(90deg, #fef2f2, #fee2e2, #fef2f2);
    background-size: 200% 100%;
    color: #7f1d1d;
    border: 1px solid #fca5a5;
    animation: flame-shimmer 1.8s ease-in-out infinite;
}
.flame-l5 svg {
    color: #dc2626;
    animation: flame-pulse 0.9s ease-in-out infinite alternate;
}

@keyframes flame-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes flame-pulse {
    from { transform: scale(1);    opacity: 1; }
    to   { transform: scale(1.25); opacity: 0.85; }
}


/* Error toast */
#error-toast { animation: slideIn 0.3s ease; }
@keyframes slideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* Date range buttons — blue active state */
.date-range-btn {
    color: #64748b;
    background: transparent;
    border: 2px solid transparent;
}
.date-range-btn:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.5);
}
.date-range-btn.active {
    color: #1e40af;
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

/* Search mode buttons — blue active state */
.search-mode-btn {
    color: #64748b;
    background: transparent;
    border: 2px solid transparent;
}
.search-mode-btn:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.5);
}
.search-mode-btn.active {
    color: #1e40af;
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

/* Advanced search */
.animate-fade-in { animation: fadeIn 0.2s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
#advanced-search-chevron.rotated { transform: rotate(180deg); }

@media (max-width: 640px) {
    .cta-button { padding: 0.875rem 1.5rem; font-size: 1rem; }
}
