/* Custom styles for Tereza Astrology Web */

/* Theme Variables */
:root {
    --brand-bg: #FBF9F6;         /* Soft warm cream */
    --brand-surface: #FFFFFF;    /* Pure white */
    --brand-green: #1E352B;      /* Deep forest green */
    --brand-gold: #D4AF37;       /* Vibrant gold */
    --brand-gold-hover: #B8860B; /* Darker gold for hover state */
    --brand-text: #23211F;       /* Dark charcoal for excellent readability */
    --brand-muted: #5A5551;      /* Darker muted gray for WCAG AA compliance */
    --brand-nav-bg: rgba(251, 249, 246, 0.9);
}

/* Dark Mode Variables */
html.dark {
    --brand-bg: #0A120E;         /* Deepest forest green/black */
    --brand-surface: #121F19;    /* Dark forest green card background */
    --brand-green: #F1F5F2;      /* Off-white for headings */
    --brand-gold: #FFD700;       /* Bright gold for dark mode contrast */
    --brand-gold-hover: #DAA520;
    --brand-text: #E4EDE7;       /* Soft light sage/gray for body text */
    --brand-muted: #9FB0A4;      /* Soft sage for muted text */
    --brand-nav-bg: rgba(10, 18, 14, 0.9);
}

body {
    background-color: var(--brand-bg);
    color: var(--brand-text);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Smooth transitions for theme toggle */
*, *::before, *::after {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.old-money-border {
    border: 1px solid rgba(197, 168, 128, 0.3);
}

html.dark .old-money-border {
    border: 1px solid rgba(197, 168, 128, 0.15);
}

.glass-nav {
    background: var(--brand-bg);
}

/* Animations for loading */
.fade-in {
    animation: fadeIn 1s ease-in forwards;
    opacity: 0;
}

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-400 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles for nice placeholder images */
.img-placeholder {
    background-color: #E8E3DD;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="%23C5A880" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10"></circle><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path><path d="M2 12h20"></path></svg>');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20%;
}

html.dark .img-placeholder {
    background-color: #1A2E25;
}

/* Language selector styles */
.lang-btn {
    padding: 6px 8px;
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    transform: scale(1.15);
    background-color: rgba(197, 168, 128, 0.15);
}

.lang-btn.active {
    background-color: rgba(197, 168, 128, 0.25);
    box-shadow: 0 0 0 1px rgba(197, 168, 128, 0.5);
}

/* Custom dark mode overrides */
.dark select option {
    background-color: #121F19;
    color: #E4EDE7;
}

/* Custom Select Dropdown Styling */
#custom-select-options {
    background-color: #ffffff !important;
    border: 2px solid #B08F5C !important;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.dark #custom-select-options {
    background-color: #121F19 !important;
    border: 2px solid rgba(197, 168, 128, 0.4) !important;
}

.custom-option-btn {
    width: 100%;
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent !important;
    border: none;
    border-bottom: 1px solid rgba(176, 143, 92, 0.1) !important;
    color: #23211F !important; /* Solid dark text in light mode */
    cursor: pointer;
}
.dark .custom-option-btn {
    border-bottom: 1px solid rgba(197, 168, 128, 0.08) !important;
    color: #E4EDE7 !important; /* Solid light text in dark mode */
}
.custom-option-btn:last-child {
    border-bottom: none !important;
}
.custom-option-btn:hover {
    background-color: rgba(176, 143, 92, 0.1) !important;
}
.dark .custom-option-btn:hover {
    background-color: rgba(197, 168, 128, 0.15) !important;
}
.custom-option-btn.active {
    background-color: rgba(176, 143, 92, 0.15) !important;
    font-weight: 600 !important;
    color: #B08F5C !important;
    border-left: 4px solid #B08F5C !important;
    padding-left: 1rem !important;
}
.dark .custom-option-btn.active {
    background-color: rgba(197, 168, 128, 0.2) !important;
    color: #C5A880 !important;
    border-left: 4px solid #C5A880 !important;
}

