:root {
    /* Primary Colors */
    --primary: #1a0d33;
    --secondary: #2d1b4e;
    --accent: #ff5e78;
    
    /* Text Colors */
    --text: #f0e6ff;
    --text-secondary: #c9b3e0;
    --text-muted: #a084c4;
    
    /* Background Colors */
    --background: #0d0d1a;
    --background-secondary: #1a1a2e;
    --background-tertiary: #16213e;
    
    /* Interactive Elements */
    --hover: #5a4073;
    --active: #6b4d87;
    --focus: #7d5ba6;
    
    /* Status Colors */
    --success: #4ade80;
    --warning: #fbbf24;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Borders & Shadows */
    --border: #4a3569;
    --border-light: #2d1b4e;
    --shadow: rgba(26, 13, 51, 0.5);
    
    /* Typography Scale */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-mono: 'Courier New', monospace;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    
    /* Spacing System */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius System */
    --radius-sm: 0.125rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Legacy Variables for Backward Compatibility */
    --highlight: #2a4066;
    --danger: #ff4444;
    --gradient-accent: linear-gradient(45deg, var(--accent), var(--warning));
    --gradient-secondary: linear-gradient(to bottom, var(--secondary), rgba(26, 26, 51, 0.9));
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --border-radius: 10px;
    --header-height: 70px;
    
    /* Additional Design System Variables */
    --text-bright: #ffffff;
    --text-primary: var(--text);
    --primary-darker: #0f081f;
    --primary-darkest: #0a0515;
    --accent-tarnished: rgba(255, 94, 120, 0.2);
    --accent-bright: #ff8fa3;
    --surface-primary: var(--background);
    --surface-secondary: var(--background-secondary);
    --surface-tertiary: var(--background-tertiary);
    --border-color: var(--border);
}

/* Light Theme Variables */
body.light-theme {
    /* Primary Colors - Better contrast for readability */
    --primary: #ffffff;
    --secondary: #f1f5f9;
    --accent: #dc2626;
    
    /* Text Colors - Much darker for better readability */
    --text: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    /* Background Colors - Better separation */
    --background: #ffffff;
    --background-secondary: #f8fafc;
    --background-tertiary: #e2e8f0;
    
    /* Interactive Elements */
    --hover: #f1f5f9;
    --active: #e2e8f0;
    --focus: #94a3b8;
    
    /* Status Colors */
    --success: #16a34a;
    --warning: #ea580c;
    --error: #dc2626;
    --info: #2563eb;
    
    /* Borders & Shadows - More defined */
    --border: #cbd5e1;
    --border-light: #e2e8f0;
    --shadow: rgba(15, 23, 42, 0.15);
    
    /* Additional Design System Variables */
    --text-bright: #000000;
    --text-primary: var(--text);
    --primary-darker: #e2e8f0;
    --primary-darkest: #cbd5e1;
    --accent-tarnished: rgba(220, 38, 38, 0.1);
    --accent-bright: #b91c1c;
    --surface-primary: var(--background);
    --surface-secondary: var(--background-secondary);
    --surface-tertiary: var(--background-tertiary);
    --border-color: var(--border);
}

/* Dark Theme Variables (Default) */
body.dark-theme {
    /* Use existing root variables as base */
}

/* Gradients for both themes */
:root {
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--background-tertiary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #ff8fa3 100%);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Base body styling for all themes */
body {
    background-color: var(--background);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header styling that works with both themes */
header {
    background-color: var(--background-secondary);
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

/* Light theme specific improvements for better readability */
body.light-theme .profile-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

body.light-theme .profile-bio,
body.light-theme .profile-blogs {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #dc2626;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

body.light-theme .profile-bio h3,
body.light-theme .profile-blogs h3 {
    color: #dc2626;
}

body.light-theme .profile-name {
    color: #dc2626;
}

body.light-theme .profile-username {
    color: #334155;
    opacity: 1;
}

body.light-theme .meta-item {
    color: #475569;
}

body.light-theme .meta-item i {
    color: #dc2626;
}

body.light-theme .blog-preview {
    background: #f8fafc;
    border-left: 3px solid #dc2626;
    border: 1px solid #e2e8f0;
}

body.light-theme .blog-preview h4 {
    color: #0f172a;
}

body.light-theme .blog-preview .content {
    color: #334155;
}

body.light-theme .blog-preview .date {
    color: #64748b;
}

body.light-theme .soul-comments {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

body.light-theme .soul-comments > h3 {
    color: #dc2626;
}

body.light-theme .comment-author-name {
    color: #dc2626;
}

body.light-theme .comment-author-date {
    color: #64748b;
}

/* Light theme button improvements */
body.light-theme .action-btn.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    border: none;
}

body.light-theme .action-btn.btn-secondary {
    background: transparent;
    color: #dc2626;
    border: 2px solid #dc2626;
}

body.light-theme .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

/* Light theme floating buttons */
body.light-theme .floating-buttons button {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

body.light-theme .floating-buttons button:hover {
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Light theme header improvements */
body.light-theme .header-theme-toggle:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* Light theme footer improvements */
body.light-theme footer {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #334155;
    border-top: 2px solid #cbd5e1;
    box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.08);
}

body.light-theme footer p {
    color: #475569;
}

body.light-theme footer p:first-child {
    color: #0f172a;
    font-weight: 600;
} 