/* --------------------------------------
   Dark Mode Glassmorphism Theme
-------------------------------------- */

:root {
    --bg-color: #0b0c10;
    --text-primary: #ffffff;
    --text-secondary: #c5c6c7;
    --accent-glow: rgba(69, 250, 220, 0.4);
    --accent-glow-secondary: rgba(138, 43, 226, 0.4);
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(16px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-glow);
    top: -100px;
    left: -100px;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-glow-secondary);
    bottom: -150px;
    right: -100px;
    animation: drift 25s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* Typography Utilities */
.gradient-text {
    background: linear-gradient(90deg, #45fadc, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.small { font-size: 0.85rem; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* Navigation */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(11, 12, 16, 0.7);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
}

.nav-brand span {
    color: #45fadc;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #45fadc;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Core Layout Containers */
.container {
    padding: 3rem 5%;
    max-width: 1400px;
    margin: auto;
}

/* Base Glass Components */
.glass-panel, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Home / Hero */
.hero-section {
    padding: 5rem 2rem;
    margin-top: 2rem;
}

.hero-section h1 { font-size: 4rem; margin-bottom: 1rem; }
.hero-section .subtitle { font-size: 1.5rem; margin-bottom: 3rem; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Form & Inputs */
.glass-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.glass-input:focus {
    border-color: #45fadc;
    box-shadow: 0 0 15px rgba(69, 250, 220, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Buttons */
.btn-primary, .btn-success {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(90deg, #45fadc, #2bbdb2);
    color: #0b0c10;
}

.btn-success {
    background: linear-gradient(90deg, #8a2be2, #ba55d3);
    color: white;
}

.glow-effect:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.05);
}

/* Split-View App Layout */
.app-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

/* Terminal Console */
.glass-terminal {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    border: 1px solid #333;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

.terminal-header {
    background: #222;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #888;
    border-bottom: 1px solid #333;
}

#terminal-logs {
    padding: 1rem;
    height: 250px;
    overflow-y: auto;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.terminal-entry {
    color: #45fadc;
    animation: fadeInLog 0.3s ease-out;
}

@keyframes fadeInLog {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Drafts Review Grid */
.drafts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.editor-input {
    resize: vertical;
    min-height: 250px;
}

/* Archives & Library Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 1.5rem;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.image-card {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-prompt-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-card:hover .image-prompt-overlay {
    transform: translateY(0);
}

/* Animation Utilities */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

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