/* ============================================
   REBIRTH FAITH - GLOBAL THEME SYSTEM
   Unified Purple Church Color Scheme for All Pages
   ============================================ */

/* CSS Variables - Light Theme (Default) */
:root {
    /* Primary Colors - Church Inspired */
    --primary-bg: #3a3347;
    --secondary-bg: #f8f9fa;
    --accent: #7c3aed;
    --accent2: #6366f1;
    --accent3: #8b5cf6;
    --accent4: #a78bfa;
    --accent5: #c084fc;
    
    /* Text Colors */
    --text-main: #2C3E50;
    --text-light: #ffffff;
    --text-muted: #7F8C8D;
    
    /* UI Elements */
    --card-bg: #ffffff;
    --card-bg-hover: #ffffff;
    --card-blur: blur(10px);
    --border-color: rgba(0,0,0,0.1);
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.15);
    
    /* Gradients - Church Palette */
    --gradient-primary: linear-gradient(135deg, #3a3347 0%, #4c4259 50%, #5e516b 100%);
    --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #474ae4 0%, #5e26df 100%);
    --gradient-tertiary: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    
    /* Input & Form Elements */
    --input-bg: #ffffff;
    --input-border: #e0e0e0;
    --input-focus: #7c3aed;
    
    /* Navigation */
    --nav-bg: rgba(58, 51, 71, 0.95);
    --nav-text: rgba(255,255,255,0.9);
    --nav-hover: #ffffff;
    
    /* Success/Error States */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-bg: #18141f;
    --secondary-bg: #23202a;
    --text-main: #f8f9fa;
    --text-muted: #a8a8a8;
    --card-bg: #2a2633;
    --card-bg-hover: #342f3f;
    --border-color: rgba(255,255,255,0.1);
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.3);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.4);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.5);
    
    /* Input & Form Elements */
    --input-bg: #2a2633;
    --input-border: #3d3847;
    --input-focus: #8b5cf6;
    
    /* Navigation */
    --nav-bg: rgba(24, 20, 31, 0.95);
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--secondary-bg);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-main);
    line-height: 1.8;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent3);
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--text-light);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Forms */
input, textarea, select {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 90px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-lg);
}

/* Navigation */
nav {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

nav a {
    color: var(--nav-text);
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--nav-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .theme-toggle {
        width: 45px;
        height: 45px;
        top: 80px;
        right: 20px;
    }
}
