/* Bootstrap 5 Custom Styles for Med Borsa */
/* Add to bootstrap-custom.css */
:root {
    /* Bootstrap Theme Colors */
    --bs-primary: #0066cc;
    --bs-secondary: #00a86b;
    --bs-success: #28a745;
    --bs-info: #17a2b8;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #343a40;
    
    /* Custom Colors */
    --med-primary: #0066cc;
    --med-secondary: #00a86b;
    --med-accent: #ff6b35;
    --med-text: #1a1a1a;
    --med-text-light: #666;
    --med-bg-light: #f8f9fa;
    
    /* Bootstrap Overrides */
    --bs-border-radius: 0.5rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.75rem;

    
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--med-text);
    line-height: 1.6;
}

/* Navigation Overrides */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--med-text) !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--med-primary) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--med-primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--med-primary) 0%, #004499 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.medical-illustration svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}

/* Search Container */
.search-container {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: var(--bs-border-radius-lg);
    backdrop-filter: blur(10px);
    
}

.search-filters .form-select {
    background-color: rgba(255,255,255,0.9);
    border: none;
    font-size: 0.9rem;
    height: 38px;  
}



.search-filters .btn-outline-light:hover {
    background: white;
    color: var(--med-primary);
}

.search-filters .btn-outline-light {
  height: 38px;          /* match .form-select */
  border: 1px solid #ced4da;
  padding: 0.375rem 0.75rem;
}

/* Hero Stats */
.hero-stats .display-6 {
    color: white;
    font-weight: 700;
}

.hero-stats small {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Step Icons */
.step-icon .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Treatment Cards */
.treatment-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.card-img-container {
    overflow: hidden;
    border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0;
}

.price-badge .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

.savings-badge .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

.treatment-features .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
}

.rating .bi-star-fill {
    font-size: 1rem;
}

/* Treatment Placeholders */
.treatment-placeholder {
    width: 100%;
    height: 200px;
    position: relative;
}

.cardiology-placeholder {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.cardiology-placeholder::before {
    content: "❤️";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.6;
}

.orthopedics-placeholder {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.orthopedics-placeholder::before {
    content: "🦴";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.6;
}

.cosmetic-placeholder {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
}

.cosmetic-placeholder::before {
    content: "✨";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.6;
}

.dental-placeholder {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.dental-placeholder::before {
    content: "🦷";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.6;
}

.hair-transplant-placeholder {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.hair-transplant-placeholder::before {
    content: "💇‍♂️";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.6;
}

/* Hospital Cards */
.hospital-card {
    transition: all 0.3s ease;
    border: none;
}

.hospital-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.hospital-image {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0;
}

.hospital-rating .badge {
    font-size: 0.85rem;
}

.hospital-accreditations .badge {
    font-size: 0.75rem;
}

/* Testimonial Cards */
.testimonials .card {
    border: none;
    transition: all 0.3s ease;
}

.testimonials .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.avatar {
    font-weight: 600;
    font-size: 1.2rem;
}

/* Benefit Cards */
.benefit-card {
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.benefit-icon .icon-circle {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--med-primary) 0%, #004499 100%);
}

.cta-section .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

 /* Footer */
        footer {
            background-color: #f3f6fb;
            padding-top: 3rem;
        }
        .footer-cta {
            background-color: #dfe9f8;
            border-radius: 12px;
        }
        .footer-heading {
            font-weight: 600;
            margin-bottom: .75rem;
        }
        .footer-links a {
            display: block;
            margin-bottom: .35rem;
            text-decoration: none;
            color: #1f2933;
            font-size: 0.95rem;
        }
        .footer-links a:hover {
            text-decoration: underline;
        }
        .footer-logo {
            font-weight: 700;
            font-size: 1.25rem;
        }
        .footer-bottom-bar {
            background-color:#1e3a8a;
            color: #e5efff;
            font-size: 0.9rem;
        }

       



.social-links a {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .search-filters .col-md-3 {
        margin-bottom: 0.5rem;
    }
    
    .step-icon .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .treatment-card {
        margin-bottom: 1rem;
    }
    
    .hospital-card {
        margin-bottom: 1rem;
    }
    
    .cta-section .d-flex {
        flex-direction: column;
    }
    
    .cta-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .search-container {
        padding: 1.5rem;
    }
    
    .treatment-placeholder::before {
        font-size: 3rem;
    }
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.treatment-card,
.hospital-card,
.testimonials .card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility Improvements */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--med-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: black !important;
    }
}

/* Language Dropdown Styles */
.language-dropdown .dropdown-menu {
    min-width: 150px;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.language-dropdown .dropdown-menu .dropdown-menu-end {
    right: auto;
    left: auto;
}

.language-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.language-dropdown .dropdown-item:hover {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
}

.language-dropdown .dropdown-item.active {
    background-color: var(--bs-primary);
    color: white;
}

/* Flag Icons (Optional - if you want to add flag icons) */
.flag-icon {
    width: 20px;
    height: 15px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
}

.flag-icon-us {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23B22234'/%3E%3Crect width='60' height='8' fill='%23FFF' y='8'/%3E%3Crect width='60' height='8' fill='%23FFF' y='24'/%3E%3Crect width='60' height='8' fill='%23FFF' y='32'/%3E%3Crect width='25' height='21' fill='%233C3B6E' x='0' y='0'/%3E%3C/svg%3E");
}

.flag-icon-tr {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23E30A17'/%3E%3Crect width='60' height='20' fill='white' y='10'/%3E%3C/svg%3E");
}

.flag-icon-de {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23000'/%3E%3Crect width='60' height='13.33' fill='%23D00' y='13.33'/%3E%3Crect width='60' height='13.33' fill='%23FFCE00' y='26.66'/%3E%3C/svg%3E");
}

.flag-icon-fr {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23ED2939'/%3E%3Crect width='20' height='40' fill='white' x='20'/%3E%3Crect width='20' height='40' fill='%23002868' x='40'/%3E%3C/svg%3E");
}

/* Language Button Styling */
#languageDropdown {
    border-color: var(--bs-border-color);
    font-weight: 500;
}

#languageDropdown:hover {
    border-color: var(--bs-primary);
    background-color: transparent;
    color: var(--bs-primary);
}

#languageDropdown:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Current Language Indicator */
#currentLanguage {
    font-weight: 500;
}

/* Responsive Language Dropdown */
@media (max-width: 576px) {
    .language-dropdown .dropdown-menu {
        width: 100%;
    }
    
    #currentLanguage {
        display: none !important;
    }
}

/* Dark Mode Support for Language Dropdown */
@media (prefers-color-scheme: dark) {
    .language-dropdown .dropdown-menu {
        background-color: var(--bs-dark);
        border-color: var(--bs-gray-700);
    }
    
    .language-dropdown .dropdown-item {
        color: var(--bs-light);
    }
    
    .language-dropdown .dropdown-item:hover {
        background-color: var(--bs-gray-700);
        color: var(--bs-white);
    }
    
    .language-dropdown .dropdown-item.active {
        background-color: var(--bs-primary);
        color: var(--bs-white);
    }
}
