/**
 * Custom styles for the Maid Rental Website
 */

/* Arabic font style */
[dir="rtl"],
[lang="ar"],
.arabic-text {
    font-family: "Times New Roman", serif;
}

/* Font declarations */
@font-face {
    font-family: 'Andalus';
    src: url('../fonts/Andalus.ttf') format('truetype');
    font-display: swap;
}

/* Quote styles */
.quote-text {
    font-weight: normal;
    line-height: 1.4;
}

html[dir="ltr"] .quote-text {
    font-family: "Pinyon Script", cursive !important;
    font-size: 3.5rem;
    font-display: swap;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-rendering: optimizeLegibility;
}

html[dir="rtl"] .quote-text {
    font-family: "Andalus", "Reem Kufi", sans-serif !important;
    font-size: 2.5rem;
    font-display: swap;
    text-rendering: optimizeLegibility;
}

.quote-author {
    font-family: inherit;
    font-size: 1.125rem;
    line-height: normal;
}

/* Hero Slider Styles */
.slider-slide {
    transition: opacity 1s ease;
}

.slider-slide:not(.active) {
    opacity: 0;
}

.slider-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Slider text animations */
.slide-title,
.slide-description,
.slide-cta,
.slider-logo {
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Slider logo specific styles */
.slider-logo {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slider-logo img {
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.slider-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 35px 35px rgba(0, 0, 0, 0.2));
}

/* Animate on scroll elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Custom filter styles */
.filter-checkbox {
    border-radius: 0.25rem;
    border-color: #D1D5DB;
    color: #8B5CF6;
}

/* Country card hover effects */
.country-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Maid card hover effects */
.maid-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.maid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Maid card buttons */
.maid-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.btn-cv {
    background-color: #8B5CF6;
    color: white;
}

.btn-cv:hover {
    background-color: #7C3AED;
}

.btn-video {
    background-color: #2563EB;
    color: white;
}

.btn-video:hover {
    background-color: #1D4ED8;
}

/* Disabled button styles */
.btn.cursor-not-allowed {
    opacity: 0.7;
}

/* Improved responsive styles for maid cards on small screens */
@media (max-width: 640px) {
    .maid-card {
        margin-bottom: 1.5rem;
    }
    
    .maid-actions {
        flex-direction: column;
    }
    
    .maid-actions .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .maid-actions {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Tooltip styles */
.tooltip {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Header styles when transparent */
.header-transparent {
    background-color: transparent;
    box-shadow: none;
}

.header-transparent .nav-link {
    color: white;
}

/* Sticky header animation */
.header-scrolled {
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Mobile menu animation */
#mobile-menu {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.scale-95 {
    transform: scale(0.95);
}

#mobile-menu.scale-100 {
    transform: scale(1);
}

/* Language dropdown animation */
.language-dropdown {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
}

.language-dropdown.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Custom button hover effect */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hover-effect:hover:after {
    width: 300%;
    height: 300%;
}

/* Improved responsive layout for smaller screens */
@media (max-width: 768px) {
    .slider-slide h1 {
        font-size: 2rem;
    }
    
    .slider-slide p {
        font-size: 1rem;
    }
    
    /* Improved mobile menu styling */
    #mobile-menu {
        border-radius: 0.5rem;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* Country page filters */
    #filter-options .grid {
        grid-template-columns: 1fr;
    }
}

/* RTL language support improvements */
[dir="rtl"] .ml-1, [dir="rtl"] .ml-2, [dir="rtl"] .ml-3, [dir="rtl"] .ml-4 {
    margin-left: 0;
}

[dir="rtl"] .mr-1, [dir="rtl"] .mr-2, [dir="rtl"] .mr-3, [dir="rtl"] .mr-4 {
    margin-right: 0;
}

/* Video modal responsive improvements */
.video-modal-content {
    width: 95%;
    max-width: 800px;
}

/* Social media brand colors */
:root {
    --facebook-brand: #1877f2;
    --instagram-brand: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --whatsapp-brand: #25d366;
}

/* Global brand color overrides with ultra-high specificity */
:root [class*="social-"] [class*="facebook"],
:root .social-link.facebook,
:root .mobile-social-link.facebook,
:root a[class*="facebook"] {
    color: white !important;
    background: var(--facebook-brand) !important;
    background-color: var(--facebook-brand) !important;
    background-image: none !important;
}

:root [class*="social-"] [class*="instagram"],
:root .social-link.instagram,
:root .mobile-social-link.instagram,
:root a[class*="instagram"] {
    color: white !important;
    background: var(--instagram-brand) !important;
    background-image: var(--instagram-brand) !important;
}

:root [class*="social-"] [class*="whatsapp"],
:root .social-link.whatsapp,
:root .mobile-social-link.whatsapp,
:root a[class*="whatsapp"] {
    color: white !important;
    background: var(--whatsapp-brand) !important;
    background-color: var(--whatsapp-brand) !important;
    background-image: none !important;
}

/* Custom styles for quotes */
/* Custom quote text styles */
[dir="ltr"] .quote-text {
    font-family: "Times New Roman", Times, serif !important;
    font-size: 1.4rem !important;
    line-height: 1.6 !important;
    font-weight: normal !important;
}

[dir="rtl"] .quote-text {
    font-family: "Andalus", "Traditional Arabic", "Reem Kufi", Arial, sans-serif !important;
    font-size: 2.8rem !important;
    line-height: 1.5 !important;
    font-weight: normal !important;
    letter-spacing: 0.02em;
}

/* Quote author with default font */
.quote-author {
    font-size: 1.125rem;
    line-height: normal;
    font-family: inherit;
}
