/* Modern, açık zeminli ve responsive header CSS */
:root {
    --header-height: 64px;
    --header-bg: #fff;
    --header-text: #1a237e;
    --header-accent: #1976d2;
    --header-shadow: 0 2px 12px rgba(25, 118, 210, 0.06);
    --container-width: 1100px;
    --transition: all 0.3s cubic-bezier(.4,2,.6,1);
}

body { padding-top: var(--header-height); }

.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    color: #1a237e;
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #1a237e;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0d47a1;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #1a237e;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.dropdown-toggle i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle {
    color: #0d47a1;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    padding: 10px 0;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: #1a237e;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background-color: rgba(26, 35, 126, 0.1);
    color: #0d47a1;
    padding-left: 25px;
}

.register-button {
    background: linear-gradient(45deg, #e53935 0%, #d32f2f 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.register-button:hover {
    background: linear-gradient(45deg, #d32f2f 0%, #c62828 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    margin: 2px 0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Responsive Styles */
@media (max-width: 900px) {
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 0;
    }

    .header-container {
        padding: 10px 20px;
        height: 64px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        margin-right: 0;
    }

    .logo img {
        height: 40px;
    }

    .logo-text {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .register-button {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
        margin-left: auto;
    }

    .main-nav {
        display: none !important;
    }
}

/* Hamburger Animation */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    background-color: #fff;
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    background-color: #fff;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    background-color: #fff;
}

/* Scrolled Header Styles */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header.scrolled .logo img {
    height: 45px;
}

@media (max-width: 900px) {
    .header.scrolled .logo img {
        height: 35px;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    padding-top: 60px;
}

.mobile-menu.active {
    right: 0;
}

/* Mobile Menu Close Button */
#mobileMenuClose {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #1a237e;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 1002;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobileMenuClose:hover {
    transform: rotate(90deg);
    color: #e73829;
}

#mobileMenuClose i {
    font-size: 24px;
    line-height: 1;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin-bottom: 10px;
}

.mobile-nav-link {
    display: block;
    padding: 15px;
    color: #1a237e !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #5c6bc0 !important;
    background: #f5f7fa !important;
}

.mobile-dropdown-menu {
    display: none;
    list-style: none;
    padding: 10px 0 10px 20px;
    margin: 0;
    background: #fff !important;
}

.mobile-dropdown-menu.active {
    display: block;
}

.mobile-dropdown-link {
    display: block;
    padding: 12px 15px;
    color: #1a237e !important;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.mobile-dropdown-link:hover,
.mobile-dropdown-link.active {
    color: #5c6bc0 !important;
    background: #f5f7fa !important;
}

.mobile-register-button {
    display: block;
    background: #1976d2 !important;
    color: #fff !important;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
}

.mobile-register-button:hover {
    background: #1565c0 !important;
    transform: translateY(-2px);
}

.mobile-dropdown-toggle {
    background: none;
    border: none;
    color: #1a237e;
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.mobile-nav-item.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }
    
    .register-button {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 0;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        height: 64px;
    }

    .logo {
        margin-right: 0;
    }

    .logo img {
        width: 44px;
        height: 44px;
    }

    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        padding: 10px;
        margin-left: auto;
    }

    .main-nav {
        display: none;
    }
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.overlay.active {
    display: block;
}

/* Scroll Lock */
body.menu-open {
    overflow: hidden;
}

.main-header, .main-header * {
    color: #fff !important;
}

.nav-link:hover, .nav-link.active, .dropdown-link:hover, .dropdown-link.active, .mobile-nav-link.active, .mobile-dropdown-link.active {
    color: #c7e0ff !important;
}

.dropdown-menu, .mobile-menu {
    background: rgba(29, 78, 216, 0.98);
}

/* Logo metni de beyaz */
.logo-text .brand-name, .logo-text .brand-type {
    color: #fff !important;
}

@media (max-width: 1200px) {
    .dropdown-menu {
        max-width: 100vw;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        margin: 0;
        border-radius: 0 0 12px 12px;
    }
}

/* HEADER RENK VE YAZI SIFIRLAMA */
.main-header, .header-container, .logo, .logo-link, .logo-text, .brand-name, .brand-type, .main-nav, .nav-menu, .nav-link, .dropdown-menu, .dropdown-link, .register-button, .mobile-menu, .mobile-nav-link, .mobile-dropdown-link, .mobile-register-button {
  color: #1a237e !important;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}
.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-right: 72px !important;
}
.logo img {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.nav-link, .dropdown-link, .mobile-nav-link, .mobile-dropdown-link {
  color: #1a237e !important;
  font-weight: 600 !important;
  background: none !important;
  opacity: 1 !important;
  transition: color 0.2s, background 0.2s, opacity 0.2s;
}
.nav-link:hover, .nav-link.active, .dropdown-link:hover, .dropdown-link.active, .mobile-nav-link:hover, .mobile-nav-link.active, .mobile-dropdown-link:hover, .mobile-dropdown-link.active {
  color: #5c6bc0 !important; /* Matlaşmış koyu lacivert */
  background: #f5f7fa !important;
  opacity: 0.7 !important;
}
.register-button, .mobile-register-button {
  background: #1976d2 !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 8px 22px !important;
  font-size: 14px !important;
  box-shadow: 0 1px 4px rgba(25,118,210,0.08) !important;
  height: 38px !important;
  line-height: 22px !important;
  align-items: center !important;
  justify-content: center !important;
}
.register-button:hover, .mobile-register-button:hover {
  background: #1256a3 !important;
  color: #fff !important;
}

/* HEADER ALTINDA TEKRAR EDEN LOGO METNİ VE BOŞLUKLARI KALDIR */
.uba-hero-title, .uba-hero-title-accent {
  display: none !important;
}

/* HEADER İLE ALT BÖLÜM ARASINA NET SINIR */
.main-header {
  border-bottom: 1px solid #e3e6f0 !important;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.06) !important;
}

/* Zemin ve yazı renkleri */
.main-header, .header-container, .dropdown-menu, .mobile-menu {
  background: #fff !important;
}

/* Menü ve dropdown yazıları koyu */
.nav-link, .dropdown-link, .mobile-nav-link, .mobile-dropdown-link {
  color: #1a237e !important;
  font-weight: 600 !important;
  background: none !important;
  opacity: 1 !important;
  transition: color 0.2s, background 0.2s, opacity 0.2s;
}

/* Hover ve aktif durumda matlaşma efekti */
.nav-link:hover, .nav-link.active,
.dropdown-link:hover, .dropdown-link.active,
.mobile-nav-link:hover, .mobile-nav-link.active,
.mobile-dropdown-link:hover, .mobile-dropdown-link.active {
  color: #5c6bc0 !important; /* Matlaşmış koyu lacivert */
  background: #f5f7fa !important;
  opacity: 0.7 !important;
}

/* Kayıt/İletişim butonu hariç tüm menü yazıları koyu ve açık zemin */
.register-button, .mobile-register-button {
  background: #1976d2 !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 8px 22px !important;
  font-size: 14px !important;
  box-shadow: 0 1px 4px rgba(25,118,210,0.08) !important;
  height: 38px !important;
  line-height: 22px !important;
  align-items: center !important;
  justify-content: center !important;
}
.register-button:hover, .mobile-register-button:hover {
  background: #1256a3 !important;
  color: #fff !important;
}

/* --- ANİMASYONLAR --- */
.nav-link, .dropdown-link, .mobile-nav-link, .mobile-dropdown-link {
  transition: color 0.35s cubic-bezier(.4,2,.6,1), background 0.35s cubic-bezier(.4,2,.6,1), opacity 0.35s cubic-bezier(.4,2,.6,1);
}

/* Açılır menü animasyonu */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.35s cubic-bezier(.4,2,.6,1), transform 0.35s cubic-bezier(.4,2,.6,1), visibility 0.35s;
}
.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Mobil açılır menü animasyonu */
.mobile-dropdown-menu {
  transition: max-height 0.35s cubic-bezier(.4,2,.6,1), opacity 0.35s cubic-bezier(.4,2,.6,1);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}
.mobile-dropdown.active .mobile-dropdown-menu {
  opacity: 1;
  max-height: 500px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 900px) {
    .main-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .nav-menu, .register-button {
        display: none !important;
    }
}

/* Override any conflicting styles */
@media screen and (max-width: 900px) {
    .main-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        margin-left: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 9999 !important;
        padding: 10px !important;
        margin-right: 10px !important;
    }

    .nav-menu, .register-button {
        display: none !important;
    }

    .header-container {
        padding: 10px 20px;
        height: 64px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .logo {
        margin-right: 0;
    }

    .logo img {
        height: 40px;
    }

    .logo-text {
        display: none;
    }
} 