/* Main Styles for Dr. Paria Foulady Beauty Clinic */

/* Base Styles */
body {
    font-family: 'Vazirmatn', sans-serif;
    scroll-behavior: smooth;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease;
}

/* Theme Styles */
.theme-purple {
    --primary-color: #8b5cf6; /* Purple-500 */
    --primary-dark: #7c3aed; /* Purple-600 */
    --primary-light: #a78bfa; /* Purple-400 */
    --accent-color: #10b981; /* Emerald-500 */
}

.theme-green {
    --primary-color: #10b981; /* Emerald-500 */
    --primary-dark: #059669; /* Emerald-600 */
    --primary-light: #34d399; /* Emerald-400 */
    --accent-color: #8b5cf6; /* Purple-500 */
}

/* Default theme (fallback) */
:root {
    --primary-color: #0d9488; /* Teal-600 */
    --primary-dark: #0f766e; /* Teal-700 */
    --primary-light: #14b8a6; /* Teal-500 */
    --accent-color: #8b5cf6; /* Purple-500 */
}

/* Hero Background */
.hero-bg {
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease;
}

/* Direction Utilities */
.rtl {
    direction: rtl;
}

.ltr {
    direction: ltr;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

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

/* Navigation Styles */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Section Title Styles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Message Box Styling */
.message-box {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.message-box.show {
    opacity: 1;
    transform: translateY(0);
}

/* Content Overlay */
.content-overlay {
    background-color: rgba(248, 250, 252, 0.85);
}

/* Language and Theme Selectors */
.language-selector-container,
.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.language-selector-container select,
.theme-toggle select {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.language-selector-container select:hover,
.theme-toggle select:hover {
    border-color: var(--primary-color);
}

.language-selector-container label,
.theme-toggle label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
}

/* RTL specific adjustments */
[dir="rtl"] .language-selector-container select,
[dir="rtl"] .theme-toggle select {
    margin-right: 0.5rem;
    margin-left: 0;
}

[dir="rtl"] .language-selector-container,
[dir="rtl"] .theme-toggle {
    margin-right: 1rem;
    margin-left: 0;
}

/* Header Controls Container */
.header-controls {
    display: flex;
    align-items: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-controls {
        position: absolute;
        top: 70px;
        right: 1rem;
        background-color: white;
        padding: 0.5rem;
        border-radius: 0.375rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 50;
        flex-direction: column;
        align-items: flex-start;
        display: none;
    }

    .header-controls.show {
        display: flex;
    }

    .language-selector-container,
    .theme-toggle {
        margin: 0.5rem 0;
    }

    [dir="rtl"] .header-controls {
        right: auto;
        left: 1rem;
    }

    .mobile-controls-toggle {
        display: block;
        margin-left: 1rem;
        cursor: pointer;
        color: var(--primary-color);
    }

    [dir="rtl"] .mobile-controls-toggle {
        margin-left: 0;
        margin-right: 1rem;
    }
}

@media (min-width: 769px) {
    .mobile-controls-toggle {
        display: none;
    }

    .header-controls {
        display: flex;
    }
}

/* Tablet Specific Styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

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

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #f8fafc;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    transition: border-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.7);
}

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

/* Card Styles */
.card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color);
}

.text-primary-dark {
    color: var(--primary-dark);
}

.text-primary-light {
    color: var(--primary-light);
}

.hover\:text-primary:hover {
    color: var(--primary-color);
}

.hover\:text-primary-dark:hover {
    color: var(--primary-dark);
}

.hover\:text-primary-light:hover {
    color: var(--primary-light);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-primary-dark {
    background-color: var(--primary-dark);
}

.bg-primary-light {
    background-color: var(--primary-light);
}

.hover\:bg-primary:hover {
    background-color: var(--primary-color);
}

.hover\:bg-primary-dark:hover {
    background-color: var(--primary-dark);
}

.hover\:bg-primary-light:hover {
    background-color: var(--primary-light);
}

.border-primary {
    border-color: var(--primary-color);
}
