/* ===================================================
   main.css — Boğaziçi VIP Kurs Merkezi
   Only: topbar, header/navbar, footer, back-to-top
   Theme: #802b8e
   Mobile-first breakpoints
   =================================================== */

/* --- CSS Custom Properties --- */
:root {
  --primary: #802c8e;
  --primary-dark: #6a2376;
  --primary-light: #bf429d;
  --primary-bg: #f5edf7;
  --primary-bg-alt: #ede0f0;
  --white: #fff;
  --dark: #1a1a2e;
  --gray-100: #f8f9fa;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .12);
  --transition: .3s ease;
}

/* --- Reset / Global Overflow Fix --- */
html {
  overflow-x: hidden;
  scrollbar-gutter: stable; /* scrollbar gelince layout kaymaz */
}

body {
  overflow-x: clip; /* clip yerine hidden kullanılmaz — sticky'yi bozmaz */
}

a { text-decoration: none; }

/* =========================================
   1. TOPBAR
   ========================================= */
.topbar {
  background: var(--primary);
  color: var(--white);
  font-size: .8rem;
  padding: .35rem 0;
  position: relative;
  z-index: 1029;
}

.topbar a {
  color: var(--white);
  transition: opacity var(--transition);
}

.topbar a:hover {
  opacity: .8;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.topbar__right {
  gap: .5rem;
}

.topbar__right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: .85rem;
  transition: background var(--transition), border-color var(--transition);
}

.topbar__right a:hover {
  background: rgba(255, 255, 255, .4);
  border-color: rgba(255, 255, 255, .6);
}

/* Hide topbar text on very small screens */
.topbar__item-text {
  display: none;
}

/* =========================================
   2. HEADER / NAVBAR
   ========================================= */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1030;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.navbar {
  padding: .5rem 0;
}

.navbar-brand img {
  height: 48px;
  width: auto;
}

.navbar-toggler {
  border: none;
  padding: .4rem .6rem;
  font-size: 1.3rem;
  color: var(--primary);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(128, 44, 142, .25);
}

.navbar-nav .nav-link {
  color: var(--gray-800);
  font-weight: 500;
  font-size: .95rem;
  padding: .6rem .75rem;
  border-radius: .375rem;
  transition: color var(--transition), background var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--primary);
  background: var(--primary-bg);
}

.navbar-nav .nav-link.active {
  color: var(--white);
  background: var(--primary);
}

/* Dropdown */
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: .5rem;
  padding: .5rem 0;
  min-width: 220px;
}

.dropdown-item {
  font-size: .9rem;
  padding: .5rem 1rem;
  transition: background var(--transition), color var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--primary-bg);
  color: var(--primary);
}

.franchise-item {
  color: var(--primary) !important;
  font-weight: 600;
}

/* Navbar franchise CTA butonu */
.nav-item.ms-lg-2 {
  display: flex !important;
  align-items: center !important;
}

.btn-franchise-nav {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: .4rem 1.1rem !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.btn-franchise-nav:hover,
.btn-franchise-nav:focus {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
}

/* =========================================
   3. FOOTER
   ========================================= */
.site-footer {
  background: var(--dark);
  color: var(--gray-100);
  padding: 3rem 0 0;
  font-size: .9rem;
}

.site-footer h5,
.site-footer h6 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: .5rem;
}

.site-footer h5::after,
.site-footer h6::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-light);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: .4rem;
}

.footer-links a {
  color: #b0b0b0;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .6rem;
  color: #b0b0b0;
}

.footer-contact i {
  color: var(--primary-light);
  margin-top: .2rem;
  min-width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #b0b0b0;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: .82rem;
  color: #888;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom__right a {
  color: #888;
  text-decoration: none;
  transition: color .2s;
}
.footer-bottom__right a:hover {
  color: var(--white, #fff);
}
@media (max-width: 640px) {
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: .5rem;
  }
}

/* =========================================
   4. BACK TO TOP
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 1040;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.back-to-top:hover {
  background: var(--primary-dark);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================
   5. BOTTOM MOBILE MENU
   ========================================= */
.bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .1);
  z-index: 1050;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: .4rem 0 calc(.4rem + env(safe-area-inset-bottom, 0px));
}

.bottom-menu__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--gray-600);
  font-size: .65rem;
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: .375rem;
  transition: color var(--transition);
  border: none;
  background: none;
  cursor: pointer;
}

.bottom-menu__item i {
  font-size: 1.15rem;
}

.bottom-menu__item:hover,
.bottom-menu__item.active {
  color: var(--primary);
}

/* ===================================
   RESPONSIVE — Mobile-first
   =================================== */

/* ≥480px: normal mobile */
@media (min-width: 480px) {
  .topbar__item-text {
    display: inline;
  }
}

/* ≥768px: tablet */
@media (min-width: 768px) {
  .topbar {
    font-size: .82rem;
  }

  .bottom-menu {
    display: none;
  }

  .back-to-top {
    bottom: 30px;
    right: 30px;
  }

  .site-footer {
    padding: 3.5rem 0 0;
  }
}

/* ≥1200px: desktop */
@media (min-width: 1200px) {
  .navbar-brand img {
    height: 56px;
  }

  .navbar-nav .nav-link {
    padding: .5rem 1rem;
  }

  .site-footer {
    padding: 4rem 0 0;
  }
}

/* =========================================
   6. PAGE HERO — İç Sayfa Başlığı (ortak)
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #4a1553 100%);
  color: var(--white);
  padding: 3rem 0 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(255,255,255,.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.04) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 380px;
  height: 380px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: .75rem;
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: .5rem;
  font-size: .9rem;
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb-item a {
  color: rgba(255,255,255,.8);
  transition: color var(--transition);
}

.page-hero .breadcrumb-item a:hover {
  color: var(--white);
}

.page-hero .breadcrumb-item.active {
  color: rgba(255,255,255,.65);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: .35rem;
  color: rgba(255,255,255,.5);
}

@media (min-width: 768px) {
  .page-hero {
    padding: 4rem 0 2.5rem;
  }

  .page-hero h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1200px) {
  .page-hero {
    padding: 5rem 0 3rem;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }
}
