/* assets/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
:root {
    --primary: #a78bfa;
    --primary-dark: #8b5cf6;
    --secondary: #c4b5fd;
    --bg-main: #0f0b18;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(30, 41, 59, 0.7);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --radius: 12px;
}

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

/* Custom Scrollbar */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Textarea Specific Scrollbar */

textarea::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

textarea::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Background Blobs */

.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.15;
    border-radius: 50%;
    animation: blobMove 20s infinite alternate-reverse ease-in-out;
}

.blob-1 {
    top: -100px;
    right: -100px;
    background: var(--primary);
}

.blob-2 {
    bottom: -150px;
    left: -150px;
    background: var(--secondary);
    opacity: 0.1;
    width: 500px;
    height: 500px;
}

.blob-3 {
    top: 40%;
    left: 20%;
    width: 300px;
    height: 300px;
    opacity: 0.08;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Layout */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 2rem 4rem;
    flex-grow: 1;
}

/* Navbar */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    backdrop-filter: blur(8px);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.navbar.navbar-scrolled {
    background: var(--glass-bg);
    border-bottom-color: var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text-main);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.nav-logo .logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 0.9;
    padding: 0.2rem 0.35rem;
    background: color-mix(in srgb, var(--primary), transparent 85%);
    border-radius: 6px;
    border: 1px solid color-mix(in srgb, var(--primary), transparent 60%);
}

.nav-logo .logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.05em;
}

.nav-logo .logo-word {
    color: var(--text-main);
}

.nav-logo .logo-word.accent {
    color: var(--primary);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--primary);
}

.burger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Generator Styles */

.generator-section {
    margin-top: 1.5rem;
}

/* Mobile Sidebar */

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-card);
    padding: 5rem 2rem;
    transform: translateX(100%);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    border-left: 1px solid var(--border);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar .nav-links {
    flex-direction: column;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 98;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Main Container */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 1.5rem 4rem;
    flex: 1;
    width: 100%;
}

/* Header */

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Primary Form Control */

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    text-align: center;
}

.btn:hover {
    background: var(--primary-hover);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Content Sections */

.content-section {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Toast Notifications */

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: #ff4d4d;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(255, 77, 77, 0.3);
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: auto;
    animation: toastIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 450px;
}

.toast.fade-out {
    animation: toastOut 0.5s ease forwards;
}

.toast i {
    font-size: 1.2rem;
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Footer */

footer {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    width: 100%;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    transition: opacity 0.2s ease;
}

.footer-logo:hover {
    opacity: 0.9;
}

.footer-logo .logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 0.9;
    padding: 0.2rem 0.35rem;
    background: color-mix(in srgb, var(--primary), transparent 85%);
    border-radius: 6px;
    border: 1px solid color-mix(in srgb, var(--primary), transparent 60%);
}

.footer-logo .logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.05em;
}

.footer-logo .logo-word {
    color: var(--text-main);
}

.footer-logo .logo-word.accent {
    color: var(--primary);
    font-weight: 700;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive */

@media (max-width: 768px) {
    .burger {
        display: block;
    }
    .navbar .nav-links {
        display: none;
    }
    .generator-card {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .container {
        padding: 80px 1.5rem 2rem;
    }
}