/* ═══════════════════════════════════════════════════════
   CreatorTrendAI.com — Custom CSS
   Tailwind overrides + micro-animations + glassmorphism
   ═══════════════════════════════════════════════════════ */

/* ─── Base ──────────────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: rgba(92, 124, 250, 0.3) transparent; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(92, 124, 250, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(92, 124, 250, 0.5); }

::selection { background: rgba(92, 124, 250, 0.3); color: white; }

/* ─── Navigation ────────────────────────────────────── */
.nav-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.625rem 0.75rem; border-radius: 0.75rem;
    color: #9ca3af; font-size: 0.875rem; font-weight: 500;
    transition: all 0.2s ease;
}
.nav-link:hover { background: rgba(255,255,255,0.05); color: #e5e7eb; }
.nav-link.active { background: rgba(92, 124, 250, 0.15); color: #748ffc; }
.nav-icon { font-size: 1.125rem; width: 1.5rem; text-align: center; }

/* ─── Cards ─────────────────────────────────────────── */
.quick-action-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1.25rem 0.75rem; border-radius: 1rem;
    background: rgba(24, 26, 42, 0.8); border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease; text-decoration: none; color: inherit;
}
.quick-action-card:hover {
    background: rgba(92, 124, 250, 0.1);
    border-color: rgba(92, 124, 250, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(92, 124, 250, 0.15);
}

.stat-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem; border-radius: 1rem;
    background: rgba(24, 26, 42, 0.8); border: 1px solid rgba(255,255,255,0.05);
}
.stat-icon {
    width: 3rem; height: 3rem; border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
}

/* ─── Onboarding ────────────────────────────────────── */
.step-dot {
    width: 2rem; height: 2rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 600;
    background: rgba(255,255,255,0.05); color: #6b7280;
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}
.step-dot.active {
    background: rgba(92, 124, 250, 0.2); color: #748ffc;
    border-color: rgba(92, 124, 250, 0.5);
    box-shadow: 0 0 12px rgba(92, 124, 250, 0.3);
}

.ob-card-inner {
    padding: 0.75rem; border-radius: 0.75rem; text-align: center;
    background: rgba(24, 26, 42, 0.8); border: 2px solid rgba(255,255,255,0.05);
    cursor: pointer; transition: all 0.2s ease; font-size: 0.875rem;
}
.ob-card-inner:hover { border-color: rgba(92, 124, 250, 0.3); }
.ob-card-inner.active {
    border-color: #5c7cfa; background: rgba(92, 124, 250, 0.1);
    box-shadow: 0 0 15px rgba(92, 124, 250, 0.2);
}

/* ─── Animations ────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn { animation: fadeIn 0.4s ease-out; }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(92, 124, 250, 0.3); }
    50% { box-shadow: 0 0 20px rgba(92, 124, 250, 0.5); }
}
.pulse-glow { animation: pulse-glow 2s infinite; }

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ─── Script sections ───────────────────────────────── */
.script-section {
    background: rgba(24, 26, 42, 0.8); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 0.75rem; overflow: hidden; transition: all 0.2s ease;
}
.script-section:hover { border-color: rgba(92, 124, 250, 0.2); }
.script-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem; cursor: pointer; user-select: none;
}
.script-section-header:hover { background: rgba(255,255,255,0.02); }
.script-section-body { padding: 0 1rem 1rem; }

/* ─── Calendar ──────────────────────────────────────── */
.cal-day {
    min-height: 100px; padding: 0.5rem; background: rgba(18, 19, 31, 0.8);
    transition: background 0.2s;
}
.cal-day:hover { background: rgba(92, 124, 250, 0.05); }
.cal-day.today { background: rgba(92, 124, 250, 0.1); border-left: 3px solid #5c7cfa; }
.cal-event {
    padding: 0.25rem 0.5rem; border-radius: 0.375rem; margin-top: 0.25rem;
    font-size: 0.7rem; cursor: pointer; transition: opacity 0.2s;
}
.cal-event:hover { opacity: 0.8; }
.cal-event.planned { background: rgba(92, 124, 250, 0.2); color: #748ffc; }
.cal-event.filmed { background: rgba(255, 169, 77, 0.2); color: #ffa94d; }
.cal-event.published { background: rgba(81, 207, 102, 0.2); color: #51cf66; }

/* ─── Glassmorphism ─────────────────────────────────── */
.glass {
    background: rgba(24, 26, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ─── Loading spinner ───────────────────────────────── */
.spinner {
    width: 24px; height: 24px;
    border: 3px solid rgba(92, 124, 250, 0.2);
    border-top-color: #5c7cfa;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Viral score badge ─────────────────────────────── */
.viral-score {
    display: flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem; border-radius: 0.75rem;
    font-size: 0.875rem; font-weight: 700;
}
.viral-score.high { background: rgba(81, 207, 102, 0.2); color: #51cf66; }
.viral-score.medium { background: rgba(255, 169, 77, 0.2); color: #ffa94d; }
.viral-score.low { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; }

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
    .quick-action-card { padding: 1rem 0.5rem; }
    .stat-card { padding: 1rem; }
}
