/* Reflective Wellness Center - Custom Styles */

/* Font Imports and Variables */
:root {
    --obsidian: #1a1a1a;
    --obsidian-light: #2d2d2d;
    --silver: #c0c0c0;
    --silver-light: #e8e8e8;
    --silver-dark: #a0a0a0;
    --accent: #4a90e2;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

/* Base Styles */
body {
    background: linear-gradient(135deg, var(--obsidian) 0%, #0f0f0f 100%);
    color: var(--silver-light);
    font-family: 'Source Sans 3', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
.font-garamond {
    font-family: 'Crimson Text', serif;
    font-weight: 400;
    line-height: 1.5;
}

.font-dialogue {
    font-family: 'Source Sans 3', sans-serif;
}

/* Color Classes */
.text-silver { color: var(--silver) !important; }
.text-silver-light { color: var(--silver-light) !important; }
.text-silver-dark { color: var(--silver-dark) !important; }
.bg-dark-obsidian { background-color: var(--obsidian) !important; }
.bg-dark-secondary { background-color: var(--obsidian-light) !important; }
.border-silver { border-color: var(--silver-dark) !important; }

/* Navigation */
.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.nav-link {
    transition: all 0.3s ease;
    border-radius: 0.375rem;
    margin: 0 0.25rem;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(192, 192, 192, 0.1);
    color: var(--silver-light) !important;
}

/* Buttons */
.btn-silver {
    background-color: var(--silver);
    color: var(--obsidian);
    border: 1px solid var(--silver);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-silver:hover {
    background-color: var(--silver-light);
    color: var(--obsidian);
    border-color: var(--silver-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(192, 192, 192, 0.2);
}

.btn-outline-silver {
    color: var(--silver);
    border: 1px solid var(--silver);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-silver:hover {
    background-color: var(--silver);
    color: var(--obsidian);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(192, 192, 192, 0.2);
}

/* Cards */
.card {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(192, 192, 192, 0.1);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at center, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Breath Animation */
.breath-glow {
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(192, 192, 192, 0.3); 
    }
    50% { 
        text-shadow: 0 0 20px rgba(192, 192, 192, 0.6), 0 0 30px rgba(192, 192, 192, 0.4); 
    }
}

/* Cursor Glow Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(192, 192, 192, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover::before {
    opacity: 1;
    animation: cursor-breathe 2s ease-in-out infinite;
}

@keyframes cursor-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); }
}

/* Orb Icons */
.orb-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.orb-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.orb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Form Elements */
.form-control {
    background-color: var(--obsidian-light);
    border: 1px solid var(--silver-dark);
    color: var(--silver-light);
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: var(--obsidian-light);
    border-color: var(--silver);
    color: var(--silver-light);
    box-shadow: 0 0 0 0.2rem rgba(192, 192, 192, 0.25);
}

.form-control::placeholder {
    color: var(--silver-dark);
}

/* Journal Textarea */
.journal-textarea {
    min-height: 200px;
    resize: vertical;
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* List Groups */
.list-group-item {
    background-color: transparent;
    color: var(--silver-light);
    border-color: var(--silver-dark);
}

/* Blockquotes */
.blockquote {
    border-left: 4px solid var(--silver);
    padding-left: 1rem;
    margin-left: 0;
}

/* Modal Customization */
.modal-content {
    backdrop-filter: blur(15px);
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Alert Customization */
.alert {
    border: none;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    color: var(--silver-light);
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    color: var(--silver-light);
    border: 1px solid rgba(255, 193, 7, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .orb-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--silver-dark);
    border-radius: 4px;
}

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

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--silver);
    outline-offset: 2px;
}

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

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

/* Utility Classes */
.cursor-pointer { cursor: pointer; }
.transition-all { transition: all 0.3s ease; }

/* Footer */
footer {
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--silver-dark);
}

/* Custom HR */
hr.border-silver {
    border-color: var(--silver-dark);
    opacity: 0.3;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .navbar, footer, .btn {
        display: none;
    }
    
    .card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}
