/* ═══════════════════════════════════════════════
   ONESHOTTED — Global Styles
   ═══════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #141420;
    --bg-tertiary: #1e1e32;
    --bg-hover: #262640;

    --text-primary: #f0f0f5;
    --text-secondary: #9090a8;
    --text-accent: #c8ff00;

    --accent-primary: #7c3aed;
    --accent-secondary: #ec4899;
    --accent-gradient: linear-gradient(135deg, #7c3aed, #ec4899, #f97316);

    --success: #22c55e;
    --error: #ef4444;
    --warning: #eab308;

    --glow-purple: 0 0 20px rgba(124, 58, 237, 0.4);
    --glow-pink: 0 0 20px rgba(236, 72, 153, 0.4);
    --glow-green: 0 0 15px rgba(200, 255, 0, 0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;

    --font-heading: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ─── Reset ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--text-accent);
    text-decoration: none;
}

/* ─── Views ─── */
.view {
    display: none;
}
.view.active {
    display: block;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn:hover {
    transform: scale(1.02);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: var(--glow-purple);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* ─── Upload Zone ─── */
.upload-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 32px;
    border: 2px dashed rgba(124, 58, 237, 0.4);
    border-radius: var(--radius-lg);
    background: rgba(124, 58, 237, 0.05);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.upload-zone:hover {
    border-color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.1);
    box-shadow: var(--glow-purple);
}

.upload-zone.drag-over {
    border-color: var(--text-accent);
    background: rgba(200, 255, 0, 0.08);
    box-shadow: var(--glow-green);
    transform: scale(1.01);
}

.upload-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.upload-headline {
    font-size: 1.4rem;
    color: var(--text-primary);
}

.upload-subtext {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.upload-hint {
    color: rgba(144, 144, 168, 0.6);
    font-size: 0.8rem;
}

/* ─── Toast Notifications ─── */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    transform: translateY(30px);
    opacity: 0;
    transition: all var(--transition-normal);
    pointer-events: auto;
    max-width: 360px;
}

.toast.visible {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.15);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.15);
}

.toast-loading {
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(124, 58, 237, 0.15);
}

/* ─── Animations ─── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: var(--glow-purple); }
    50% { box-shadow: var(--glow-pink); }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}

/* ─── Selection ─── */
::selection {
    background: rgba(124, 58, 237, 0.4);
    color: #fff;
}

/* ═══════════════════════════════════════════════
   MOBILE ADJUSTMENTS (<=768px)
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    #toast-container {
        right: 16px;
        left: 16px;
        bottom: 16px;
        align-items: center;
    }

    .toast {
        max-width: 100%;
        text-align: center;
        font-size: 0.85rem;
    }

    .btn {
        padding: 14px 20px;
    }

    .btn-ghost {
        padding: 8px 12px;
    }
}
