/* ===== DIGITAL GARDEN - MAIN STYLES ===== */

/* CSS Variables */
:root {
    /* Beautiful Light Theme Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    
    /* Background Colors - Warm and inviting */
    --background: #fefefe;
    --surface: #f9fafb;
    --surface-elevated: #ffffff;
    --surface-soft: #f3f4f6;
    
    /* Text Colors - High contrast and readable */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    /* Border & Divider - Subtle but visible */
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --border-strong: #d1d5db;
    
    /* Status Colors */
    --success: #059669;
    --success-light: #d1fae5;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --error: #dc2626;
    --error-light: #fee2e2;
    --info: #2563eb;
    --info-light: #dbeafe;
    
    /* Shadows - Soft and natural */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-surface: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    --gradient-hero: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    
    /* Spacing */
    --container-padding: 1.5rem;
    --section-padding: 5rem 0;
}

/* Dark Theme */
[data-theme="dark"] {
    /* Background Colors - Rich and elegant */
    --background: #0f0f0f;
    --surface: #1a1a1a;
    --surface-elevated: #2a2a2a;
    --surface-soft: #242424;
    
    /* Text Colors - High contrast */
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    
    /* Border & Divider */
    --border: #333333;
    --border-light: #262626;
    --border-strong: #404040;
    
    /* Status Colors - Adjusted for dark theme */
    --success-light: #064e3b;
    --warning-light: #78350f;
    --error-light: #7f1d1d;
    --info-light: #1e3a8a;
    
    /* Shadows for dark theme */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    
    /* Gradients for dark theme */
    --gradient-surface: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    transition: var(--transition);
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Section Management - Optimized for Editor */
.section {
    display: none;
    height: calc(100vh - 80px);
    width: 100%;
    overflow: hidden;
}

.section.active {
    display: flex;
    flex-direction: column;
}

/* Create Section - Special handling for editor */
#create.section {
    padding: 0;
}

#create.section.active {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
}

/* Main Container */
.main {
    width: 100%;
    min-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* ===== HEADER ===== */
.header {
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary);
    background-color: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary);
    background-color: rgba(102, 126, 234, 0.15);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Auth Section */
.auth-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.user-menu:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-post-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: var(--radius) !important;
    white-space: nowrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    justify-content: center;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background: var(--surface);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

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

/* ===== HERO SECTION ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    min-height: 60vh;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-garden {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    animation: float 6s ease-in-out infinite;
}

.plant {
    font-size: 4rem;
    text-align: center;
    animation: grow 2s ease-in-out infinite alternate;
}

.plant:nth-child(2) {
    animation-delay: 0.5s;
}

.plant:nth-child(3) {
    animation-delay: 1s;
}

.plant:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes grow {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* ===== POSTS SECTIONS ===== */
.recent-posts-preview {
    margin-top: 6rem;
}

.recent-posts-preview h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.posts-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.posts-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.posts-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.post-card:hover::before {
    opacity: 0.02;
}

.post-header {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(102, 126, 234, 0.02) 100%);
    position: relative;
}

.post-emoji {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: var(--transition);
}

.post-card:hover .post-emoji {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(102, 126, 234, 0.4);
}

.post-meta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
    transition: var(--transition);
}

.post-card:hover .post-meta h3 {
    color: var(--primary);
}

.post-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.post-content {
    padding: 2rem;
}

.post-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--background) 0%, rgba(102, 126, 234, 0.02) 100%);
    border-top: 1px solid var(--border);
}

.post-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.post-action:hover {
    color: var(--primary);
}

.post-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.view-all-posts {
    text-align: center;
    margin-top: 3rem;
}

/* Admin Action Buttons */
.post-admin-actions {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-header:hover .post-admin-actions {
    opacity: 1;
}

.admin-action-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.admin-action-btn.edit {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.admin-action-btn.edit:hover {
    background: rgba(34, 197, 94, 0.2);
    transform: translateY(-1px);
}

.admin-action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.admin-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

/* ===== CREATE SECTION - MINIMAL DESIGN WITH PROPER SCROLLING ===== */
#create {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    overflow: hidden;
    position: relative;
}

.create-header {
    text-align: center;
    padding: 1rem 0;
    flex-shrink: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border-light);
    z-index: 10;
}

.create-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.create-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Editor Section Layout - Scrollable */
#editorSection {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    background: var(--background);
    min-height: 0; /* Important for flex children scrolling */
}

#editorSection .unified-editor {
    margin: 0;
    flex: 1;
    height: 100%;
    border: none;
    box-shadow: none;
    min-height: 0; /* Important for flex children scrolling */
}

/* Auth Required Section */
#authRequired {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
}

#authRequired .auth-prompt {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

#authRequired .auth-prompt h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

#authRequired .auth-prompt p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.auth-required {
    text-align: center;
    padding: 4rem 2rem;
}

.auth-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.auth-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.auth-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.auth-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.editor-mode-selector {
    margin-bottom: 3rem;
}

.editor-mode-selector h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

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

.mode-option {
    padding: 2rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.mode-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mode-option.active {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.mode-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.mode-option h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.mode-option p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.editor-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Classic Editor Styles */
.classic-editor-form {
    padding: 2rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[type="text"] {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group textarea {
    min-height: 300px;
    resize: vertical;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.about-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-details ul {
    list-style: none;
    margin-bottom: 3rem;
}

.about-details li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-details li:last-child {
    border-bottom: none;
}

.about-details strong {
    color: var(--primary);
}

.about-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-contact p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.garden-illustration {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    animation: float 8s ease-in-out infinite;
}

.garden-element {
    font-size: 3rem;
    text-align: center;
    animation: bounce 3s ease-in-out infinite;
}

.garden-element:nth-child(even) {
    animation-delay: 1s;
}

.garden-element:nth-child(3n) {
    animation-delay: 2s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal {
    background: var(--surface-elevated);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.post-modal {
    max-width: 800px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-close {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--border);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.auth-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.auth-note p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.auth-note code {
    background: var(--border);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--text-primary);
}

.post-modal-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
}

.toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--error);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast.info .toast-icon {
    color: var(--info);
}

.toast-message {
    color: var(--text-primary);
    font-weight: 500;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 2rem 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .user-menu {
        gap: 0.5rem;
        padding: 0.4rem 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-name {
        display: none; /* Hide username on very small screens */
    }
    
    .new-post-btn {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
    
    .new-post-btn span {
        display: none; /* Show only icon on mobile */
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .mode-options {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .modal {
        margin: 1rem;
    }
    
    .toast {
        right: 1rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-garden {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .plant {
        font-size: 2.5rem;
    }
    
    .posts-header h1 {
        font-size: 2rem;
    }
    
    .about-text h1 {
        font-size: 2rem;
    }
    
    .create-header h1 {
        font-size: 2rem;
    }
}

/* ===== EDITOR WELCOME INTERFACE ===== */
.editor-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.welcome-content {
    text-align: center;
    max-width: 600px;
}

.welcome-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.welcome-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.welcome-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.editor-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.editor-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.feature:hover {
    background: var(--surface-elevated);
    border-color: var(--border);
    transform: translateY(-2px);
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .editor-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .welcome-content h2 {
        font-size: 2rem;
    }
    
    .welcome-icon {
        font-size: 3rem;
    }
}

/* Simple Editor Styles */
.simple-editor {
    background: var(--surface-elevated);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

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

.simple-editor label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.simple-editor input,
.simple-editor select,
.simple-editor textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--background);
}

.simple-editor input:focus,
.simple-editor select:focus,
.simple-editor textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.simple-editor textarea {
    resize: vertical;
    min-height: 200px;
    font-family: inherit;
}

.simple-editor .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    background: var(--surface-elevated);
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.3s ease-out forwards;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
    margin-left: 1rem;
}

.notification-success {
    border-left: 4px solid var(--success);
    color: var(--success);
}

.notification-error {
    border-left: 4px solid var(--error);
    color: var(--error);
}

.notification-info {
    border-left: 4px solid var(--info);
    color: var(--info);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface);
    border-radius: 12px;
    margin: 2rem 0;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}