@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@300;500;700&display=swap');

/* --- 1. CORE VARIABLES (THE LUXURY PALETTE) --- */
:root {
    --bg-deep: #050511;
    --bg-surface: #0f1026;
    --primary-gold: #FFD700;
    --accent-glow: #4f46e5;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 16, 38, 0.7);
}

/* --- SCRIPT EDITOR --- */
.editor-container {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #333;
}

.script-card {
    display: flex;
    gap: 10px;
    background: #252525;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    align-items: flex-start;
}

.script-card select {
    width: 80px;
    background: #333;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
}

.script-card textarea {
    flex: 1;
    background: #333;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    min-height: 60px;
    font-family: inherit;
}

.script-card .remove-btn {
    background: #ff4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn {
    background: #333;
    color: #888;
    width: 100%;
    padding: 10px;
    border: 1px dashed #555;
    cursor: pointer;
    margin-bottom: 20px;
}

.add-btn:hover {
    background: #444;
    color: white;
}

.editor-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* --- 2. RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Mesh Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(79, 70, 229, 0.15) 0%, transparent 50%);
    animation: pulse 15s infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* --- 3. UTILITIES & TYPOGRAPHY --- */
.h-screen {
    height: 100vh;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.text-gold {
    color: var(--primary-gold);
}

.font-heading {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.btn-glow {
    background: linear-gradient(135deg, #FFD700, #FDB931);
    color: #000;
    padding: 12px 32px;
    border-radius: 99px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- 4. GLASSMORPHISM CARDS --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-field:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

/* --- 5. AUDIO PLAYER (CUSTOM) --- */
.audio-visualizer {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.bar {
    width: 4px;
    background: var(--primary-gold);
    border-radius: 2px;
    animation: sound 1s infinite ease-in-out;
}

@keyframes sound {

    0%,
    100% {
        height: 10%;
        opacity: 0.5;
    }

    50% {
        height: 100%;
        opacity: 1;
    }
}

/* --- 6. PAGE TRANSITIONS --- */
.view-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.view-section.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 7. BADGES --- */
.badge-pro {
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary-gold);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* --- 8. LOADING SPINNER --- */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-gold);
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}