/**
 * Diş Kliniği Web Sitesi
 * Başlık Bileşeni CSS - Ultra Modern
 */

/* CSS Değişkenleri */
:root {
    /* Ana Renkler */
    --primary: #8B4513;
    --primary-light: #A0522D;
    --primary-dark: #654321;
    --secondary: #D2691E;
    --accent: #DEB887;
    --accent-glow: #FFE4B5;
    
    /* Nötr Renkler */
    --bg-light: #FFF8DC;
    --bg-cream: #FAEBD7;
    --text-dark: #2C1810;
    --text-light: #FFF;
    
    /* Modern Gradyanlar */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--accent), var(--accent-glow));
    --gradient-overlay: linear-gradient(to right, rgba(44, 24, 16, 0.9), rgba(44, 24, 16, 0.7));
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    
    /* Border Radius */
    --radius-sm: 20px;
    --radius-md: 30px;
    --radius-lg: 40px;
    --radius-xl: 60px;
    
    /* Animasyonlar */
    --transition-fast: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-normal: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-slow: 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Gelişmiş Gölgeler */
    --shadow-sm: 0 5px 15px rgba(44, 24, 16, 0.05);
    --shadow-md: 0 10px 25px rgba(44, 24, 16, 0.08);
    --shadow-lg: 0 20px 40px rgba(44, 24, 16, 0.12);
    --shadow-xl: 0 30px 60px rgba(44, 24, 16, 0.15);
    
    /* Modern Efektler */
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);
    --neon-glow: 0 0 30px rgba(139, 69, 19, 0.6);
    --text-glow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Üst Bilgi Çubuğu */
.top-bar {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 12px 0;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(30deg, var(--primary-dark) 12%, transparent 12.5%, transparent 87%, var(--primary-dark) 87.5%, var(--primary-dark));
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: -1;
}

.top-bar .contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.top-bar .contact-info a,
.top-bar .contact-info span {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
}

.top-bar .contact-info a::after,
.top-bar .contact-info span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition-fast);
    opacity: 0.7;
}

.top-bar .contact-info a:hover,
.top-bar .contact-info span:hover {
    transform: translateY(-2px);
}

.top-bar .contact-info a:hover::after,
.top-bar .contact-info span:hover::after {
    width: 100%;
}

.top-bar .contact-info i {
    font-size: 1rem;
}

.top-bar .social-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
}

.top-bar .social-links a {
    color: var(--text-light);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-glass);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.top-bar .social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-fast);
    z-index: -1;
}

.top-bar .social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-md);
}

.top-bar .social-links a:hover::before {
    opacity: 1;
}

.top-bar .row > div:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.language-selector {
    display: flex;
    align-items: center;
    background: var(--gradient-glass);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 5px 12px;
    box-shadow: var(--shadow-sm);
}

.language-selector a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0 8px;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.language-selector a.active {
    font-weight: 700;
    color: var(--accent-glow);
}

.language-selector a:hover {
    transform: scale(1.1);
}

.language-selector span {
    color: rgba(255, 255, 255, 0.5);
}

/* Ana Menü */
.main-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: #fff;
}

.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img.logo {
    max-height: 50px;
    width: auto;
}

.navbar-nav {
    gap: 5px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 50px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(139, 115, 85, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 30px;
}

/* Dropdown Menü */
.dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    margin-top: 0;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 25px;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.dropdown-item:hover {
    color: var(--primary-color);
    background: rgba(139, 115, 85, 0.05);
    padding-left: 30px;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateY(-50%);
}

.dropdown-item:hover::before {
    width: 10px;
}

/* Randevu Butonu */
.appointment-btn .btn {
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: linear-gradient(45deg, #8B7355, #A0522D);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.2);
}

.appointment-btn .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.3);
    background: linear-gradient(45deg, #A0522D, #8B7355);
}

/* WhatsApp Butonu */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: #fff;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-button a:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Mobil Menü Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobil Menü Header */
.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: rotate(90deg);
}

/* Mobil Menü */
@media (max-width: 991.98px) {
    /* Modern Hamburger Menü İkonu */
    .navbar-toggler {
        border: none;
        padding: 8px;
        outline: none !important;
        box-shadow: none !important;
        background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
        border-radius: 10px;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    }
    
    .navbar-toggler:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.2) !important;
    }
    
    .navbar-toggler-icon {
        background-image: none !important;
        width: 24px;
        height: 18px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after,
    .navbar-toggler-icon span {
        content: '';
        display: block;
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler-icon::before {
        position: absolute;
        top: 0;
    }
    
    .navbar-toggler-icon::after {
        position: absolute;
        bottom: 0;
    }
    
    /* Hamburger -> X Animasyonu */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
        transform: rotate(45deg);
        top: 50%;
        margin-top: -1.5px;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
        transform: rotate(-45deg);
        bottom: 50%;
        margin-bottom: -1.5px;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    /* Mobil Menü Panel */
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: linear-gradient(180deg, #fff 0%, #f8f5f2 100%);
        z-index: 1050;
        padding: 0;
        overflow-y: auto;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        will-change: right;
    }
    
    .navbar-collapse.show {
        right: 0;
    }
    
    /* Mobil Menü Header */
    .mobile-menu-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        margin-bottom: 0;
        border-bottom: none;
    }
    
    .mobile-menu-header::before {
        content: 'MENÜ';
        color: #fff;
        font-weight: 700;
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
        border-radius: 50%;
        text-decoration: none;
        font-size: 20px;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
    }
    
    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.3);
        color: #fff;
        transform: rotate(90deg);
    }
    
    /* Mobil Menü İçerik */
    .navbar-nav {
        width: 100%;
        padding: 1rem;
    }
    
    .nav-item {
        border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 1rem 0.5rem;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-dark) !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--primary) !important;
        background: transparent;
    }
    
    /* Dropdown Menü - Mobil */
    .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100%;
        padding: 0 !important;
        margin: 0;
        border: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                    padding 0.35s ease,
                    opacity 0.25s ease;
        display: block !important;
        background: rgba(139, 69, 19, 0.05);
        border-radius: 0;
        opacity: 0;
        visibility: visible;
        transform: none;
    }
    
    .dropdown-menu.show {
        max-height: 500px;
        padding: 0.75rem 0 !important;
        margin-top: 0;
        margin-bottom: 0.5rem;
        border-radius: 12px;
        opacity: 1;
    }
    
    .dropdown-item {
        padding: 0.75rem 1.5rem;
        white-space: normal;
        font-weight: 500;
        color: var(--text-dark);
        border-radius: 8px;
        margin: 0 0.5rem;
        transition: all 0.2s ease;
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus {
        background: rgba(139, 69, 19, 0.1);
        color: var(--primary);
        padding-left: 2rem;
    }
    
    .dropdown-item::before {
        display: none;
    }
    
    /* Dropdown Ok İkonu */
    .dropdown-toggle::after {
        float: right;
        margin-top: 0.25rem;
        margin-left: auto;
        transition: transform 0.3s ease;
        border-top-color: var(--primary);
    }
    
    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    
    /* Mobil Dil Seçici */
    .mobile-language-selector {
        display: block !important;
        margin: 1.5rem 1rem;
        padding: 1rem;
        background: linear-gradient(135deg, rgba(139, 69, 19, 0.05), rgba(139, 69, 19, 0.1));
        border-radius: 12px;
        border: 1px solid rgba(139, 69, 19, 0.1);
    }
    
    .mobile-lang-label {
        display: block;
        font-weight: 600;
        color: var(--primary);
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }
    
    .mobile-lang-label i {
        margin-right: 0.5rem;
    }
    
    .mobile-lang-buttons {
        display: flex;
        gap: 0.75rem;
    }
    
    .mobile-lang-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: #fff;
        border: 2px solid rgba(139, 69, 19, 0.2);
        border-radius: 10px;
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 500;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }
    
    .mobile-lang-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: rgba(139, 69, 19, 0.05);
    }
    
    .mobile-lang-btn.active {
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        color: #fff;
        border-color: var(--primary);
        box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    }
    
    .lang-flag {
        font-size: 1.2rem;
    }
    
    /* Randevu Butonu - Mobil */
    .appointment-btn {
        display: block !important;
        margin: 1rem;
    }
    
    .appointment-btn .btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: 12px;
    }
}

/* Masaüstünde mobil dil seçiciyi gizle */
@media (min-width: 992px) {
    .mobile-language-selector {
        display: none !important;
    }
}

/* Responsive Ayarlar */
@media (max-width: 767.98px) {
    /* Mobilde top-bar tamamen gizlenir, sayfa daha temiz görünür */
    .top-bar {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .top-bar .contact-info {
        gap: 15px;
    }
    
    .top-bar .contact-info a,
    .top-bar .contact-info span {
        font-size: 0.8rem;
    }
    
    .top-bar .social-links {
        gap: 10px;
    }
    
    .top-bar .social-links a {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}

@media (max-width: 1200px) {
    .navbar-brand img.logo {
        max-height: 45px;
    }
}

@media (max-width: 991px) {
    .navbar-brand img.logo {
        max-height: 40px;
    }
}

@media (max-width: 768px) {
    .navbar-brand img.logo {
        max-height: 85px;
    }
} 