/* ===================================
   US Teknik - Kurumsal Navbar Tasarımı
   =================================== */

/* Navbar Genel Ayarlar */
.navbar {
    background-color: #212121 !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0;
    height: 70px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

/* Brand (Logo) Stili */
.navbar-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* Nav Link Genel Stil */
.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 12px;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    margin: 0 0.1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

/* Nav Link Hover Efekti */
.nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Dropdown Toggle Özel Stil */
.dropdown-toggle {
    position: relative;
}

/* Dropdown positioning optimization */
.dropdown-menu {
    min-width: 200px;
    left: 0;
    right: auto;
}

.dropdown-menu.show {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
}

.dropdown-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover::before {
    background: rgba(255, 255, 255, 0.05);
}

/* Dropdown Menu Stil */
.dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    margin-top: 0.25rem;
    background: #212121;
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Item Stil */
.dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    padding: 0.4rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), transparent);
    color: #ffffff;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.dropdown-item:active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Active/Current Page Stil */
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-link.active::after {
    width: 0;
}

/* Navbar Toggler (Mobil) */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.15);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar-toggler:hover .navbar-toggler-icon {
    filter: invert(1);
}

/* Responsive Ayarlar */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #212121;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }
    
    .nav-link {
        margin: 0.25rem 0;
    }
    
    .dropdown-menu {
        box-shadow: none;
        border-left: 3px solid rgba(255, 255, 255, 0.3);
        margin-left: 1rem;
        background: transparent;
    }
}

/* Kullanıcı İşlemleri Menü Özel Stil */
.nav-item.dropdown:last-child .nav-link {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    position: relative;
}

.nav-item.dropdown:last-child .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item.dropdown:last-child .nav-link:hover::before {
    opacity: 1;
}

.nav-item.dropdown:last-child .nav-link:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-item.dropdown:last-child .dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    background: #212121;
}

.nav-item.dropdown:last-child .dropdown-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-item.dropdown:last-child .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
    color: #ffffff;
    font-weight: 600;
}

/* Kayıt Ol Özel Rengi */
.nav-item.dropdown:last-child .dropdown-item[href="/kayit-ol"] {
    color: #4CAF50 !important;
    font-weight: 600;
    position: relative;
}

.nav-item.dropdown:last-child .dropdown-item[href="/kayit-ol"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #4CAF50;
    border-radius: 0 2px 2px 0;
}

.nav-item.dropdown:last-child .dropdown-item[href="/kayit-ol"]:hover {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.4), transparent);
    font-weight: 700;
}

/* Giriş Yap Özel Rengi */
.nav-item.dropdown:last-child .dropdown-item[href="/giris-yap"] {
    color: #2196F3 !important;
    font-weight: 600;
    position: relative;
}

.nav-item.dropdown:last-child .dropdown-item[href="/giris-yap"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #2196F3;
    border-radius: 0 2px 2px 0;
}

.nav-item.dropdown:last-child .dropdown-item[href="/giris-yap"]:hover {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.4), transparent);
    font-weight: 700;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Body Genel Ayarlar */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    background-color: #f8f9fa;
    padding-top: 70px;
}

/* ===================================
   Hover Card Efektleri
   =================================== */

.hover-card {
    transition: all 0.3s ease;
    position: relative;
}

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

.hover-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(33, 150, 243, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.hover-card:hover::before {
    opacity: 1;
}

/* Badge Stil Yardımcıları (Bootstrap 5 Uyumlu) */
.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.text-primary {
    color: #0d6efd !important;
}

/* Mühendis Kartları için Özel Stiller */
.card-body .contact-item i,
.card-body .bg-light i {
    display: block;
}

.card-body .bg-light {
    background-color: #f8f9fa !important;
}

.text-warning {
    color: #ffc107 !important;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

