/* ============================================
   LifeTimeScript — Custom Styles
   Dark Matte Violet Theme
   ============================================ */

/* --- Base --- */
:root {
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --purple-700: #6d28d9;
    --dark-900: #0f0f23;
    --dark-950: #0a0a1a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-950);
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-950); }
::-webkit-scrollbar-thumb { background: #2d2d5e; border-radius: 3px; }

/* --- Glass effect --- */
.glass {
    background: rgba(15, 15, 35, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

/* --- Gradient text --- */
.gradient-text {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Hero gradient background --- */
.hero-gradient {
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.15), transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1), transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(109, 40, 217, 0.08), transparent 50%),
        var(--dark-950);
}

/* --- Animated gradient orb --- */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 15s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: #7c3aed; top: -100px; right: -100px; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: #8b5cf6; bottom: -50px; left: -50px; animation-delay: 5s; }
.orb-3 { width: 200px; height: 200px; background: #a78bfa; top: 50%; left: 50%; animation-delay: 10s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* --- Script Card --- */
.script-card {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.script-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.2);
}
.script-card .card-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(109, 40, 217, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.script-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.script-card:hover .card-image img { transform: scale(1.05); }

/* --- Buttons --- */
.btn-glow {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}
.btn-glow:active { transform: translateY(0); }

.btn-outline {
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
}

/* --- Navigation --- */
.nav-glass {
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}
.nav-link {
    color: #94a3b8;
    transition: color 0.3s ease;
    position: relative;
    text-decoration: none;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: #a78bfa; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* --- Price tag --- */
.price-tag {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 4px 16px;
    border-radius: 9999px;
    font-weight: 700;
}

/* --- Category badge --- */
.cat-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- News card --- */
.news-card {
    background: rgba(15, 15, 35, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}
.news-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
}

/* --- Animations --- */
.fade-in { animation: fadeIn 0.6s ease-out; }
.slide-up { animation: slideUp 0.6s ease-out; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Stagger children --- */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* --- Footer --- */
.footer-gradient {
    background: linear-gradient(to top, rgba(10, 10, 26, 1), rgba(15, 15, 35, 0.8));
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

/* --- Forms --- */
.form-input {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #e2e8f0;
    padding: 12px 16px;
    border-radius: 12px;
    width: 100%;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    outline: none;
}
.form-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}
.form-input::placeholder { color: #4a5568; }

/* --- Pulse dot --- */
.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem !important; }
    .orb { display: none; }
}
