/* ── ResumePilot Custom Styles ────────────────────────── */
/* Supplements Tailwind CDN – animations, transitions, etc. */

/* ── Root Variables ──────────────────────────────────── */
:root {
    --rp-primary: #6366f1;
    --rp-primary-dark: #4f46e5;
    --rp-accent: #06b6d4;
    --rp-bg-dark: #0f172a;
    --rp-bg-card: #1e293b;
    --rp-text: #e2e8f0;
    --rp-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
}

/* ── Smooth Scrolling ────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Hero Gradient Orbs ──────────────────────────────── */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}
.hero-glow-1 {
    width: 500px; height: 500px;
    background: var(--rp-primary);
    top: -100px; left: -100px;
}
.hero-glow-2 {
    width: 400px; height: 400px;
    background: var(--rp-accent);
    bottom: -80px; right: -80px;
    animation-delay: 3s;
}

/* ── Float Animation ─────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-30px) scale(1.05); }
}

/* ── Fade In Up ──────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

/* ── Slide In ────────────────────────────────────────── */
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}
.animate-slide-in { animation: slideIn 0.5s ease-out both; }

/* ── Pulse Glow Button ───────────────────────────────── */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--rp-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(12px);
}
.btn-glow:hover::after { opacity: 1; }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(99,102,241,0.3); }

/* ── Card Hover ──────────────────────────────────────── */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ── Glass Card ──────────────────────────────────────── */
.glass {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

/* ── Template Preview Cards ──────────────────────────── */
.template-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
}
.template-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

/* ── Resume Preview (Builder) ────────────────────────── */
.resume-preview {
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}
.resume-preview h1 { font-size: 1.75rem; font-weight: 700; color: #1e293b; }
.resume-preview h2 { font-size: 1.1rem; font-weight: 600; color: var(--rp-primary); border-bottom: 2px solid var(--rp-primary); padding-bottom: 4px; margin-top: 16px; }
.resume-preview h3 { font-size: 0.95rem; font-weight: 600; color: #334155; }
.resume-preview p, .resume-preview li { font-size: 0.85rem; color: #475569; }

/* ── Cover Letter Preview ────────────────────────────── */
.coverletter-preview {
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    padding: 2rem;
}

/* ── Blog Content Styles ─────────────────────────────── */
.blog-content h2 { font-size: 1.5rem; font-weight: 700; color: #e2e8f0; margin-top: 2rem; margin-bottom: 0.75rem; }
.blog-content h3 { font-size: 1.25rem; font-weight: 600; color: #cbd5e1; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.blog-content p  { color: #94a3b8; line-height: 1.8; margin-bottom: 1rem; }
.blog-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.blog-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.blog-content li { color: #94a3b8; margin-bottom: 0.5rem; line-height: 1.7; }
.blog-content strong { color: #e2e8f0; }
.blog-content blockquote { border-left: 4px solid var(--rp-primary); padding-left: 1rem; margin: 1.5rem 0; color: #94a3b8; font-style: italic; }

/* ── Category Badge ──────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Nav active underline ────────────────────────────── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--rp-gradient);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ── Print / PDF Styles ──────────────────────────────── */
@media print {
    body { background: white !important; }
    .no-print { display: none !important; }
    .resume-preview, .coverletter-preview { box-shadow: none !important; border: none !important; }
}

/* ── Cookie Banner ───────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }

/* ── Loading Skeleton ────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ── Tooltip ─────────────────────────────────────────── */
[data-tooltip] {
    position: relative;
}
[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%; left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 50;
}
[data-tooltip]:hover::before { opacity: 1; }
