/* ================================================
   TDP - TOPLUMCU DEMOKRASİ PARTİSİ
   Ana Sayfa Özel Stilleri
   ================================================ */

/* Lacivert → Kırmızı global override */
:root {
  --main-color-two: #9a1730 !important;
  --secondary-color: #7a1228 !important;
  --heading-color: #1a0a0e !important;
}

/* ===== ANA SAYFA NAVBAR ===== */
/* Şeffaf, hero ile bütünleşik */
.header-style-01 .navbar-area {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
/* Menü dot/line dekorasyonları gizle */
.header-style-01 .navbar-area .line { display: none !important; }
/* Logo büyüt */
.header-style-01 .navbar-area .logo img {
  max-height: 52px !important;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
}
/* Parti adı beyaz */
.header-style-01 .navbar-area .tdp-logo-name {
  color: #fff !important;
}
/* Nav linkleri beyaz */
.header-style-01 .navbar-area .navbar-nav li > a {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500 !important;
}
.header-style-01 .navbar-area .navbar-nav li:hover > a,
.header-style-01 .navbar-area .navbar-nav li.current-menu-item > a {
  color: #fff !important;
}
/* Sağ buton */
.header-style-01 .navbar-area .boxed-btn.political-btn {
  background: #c41e3a !important;
  border: none !important;
  color: #fff !important;
}
.header-style-01 .navbar-area .boxed-btn.political-btn:hover {
  background: #e63946 !important;
}
/* --- SCROLL: Beyaz navbar --- */
.header-style-01 .navbar-area.nav-fixed {
  background: #fff !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08) !important;
}
.header-style-01 .navbar-area.nav-fixed .tdp-logo-name {
  color: #1a1a2e !important;
}
.header-style-01 .navbar-area.nav-fixed .navbar-nav li > a {
  color: #1a1a2e !important;
}
.header-style-01 .navbar-area.nav-fixed .navbar-nav li:hover > a,
.header-style-01 .navbar-area.nav-fixed .navbar-nav li.current-menu-item > a {
  color: #c41e3a !important;
}

/* ===== MOBILE: restore transparent-over-hero (override responsive-fixes.css)
   ==========================================================================
   responsive-fixes.css blanket-forces a fixed white bar for every mobile
   page (good default — every other route needs it for readability over a
   light masthead). The homepage is the one exception: its hero fills the
   viewport with a dark gradient, so the nav must float transparently over
   it and only turn white once the user scrolls past the hero.

   Selectors are prefixed with `html body` to win the specificity race
   against the global override's `!important` declarations of equal depth. */
@media (max-width: 991px) {
  html body .header-style-01 .navbar-area {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
    transition:
      background 0.3s ease,
      box-shadow 0.3s ease,
      transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    z-index: 1000 !important;
  }

  /* Once scrolled past the hero (Header.tsx toggles .nav-fixed > 700 px),
     switch to the fixed white bar. */
  html body .header-style-01 .navbar-area.nav-fixed {
    position: fixed !important;
    background: #fff !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08) !important;
  }

  /* .nav-hidden auto-hide still works on scroll-down */
  html body .header-style-01 .navbar-area.nav-hidden {
    transform: translateY(-100%) !important;
  }

  /* The global 64 px body offset is only needed when the bar is always
     docked. On the homepage the hero sits under a transparent nav, so kill
     the offset — content already starts at y=0. */
  html body {
    padding-top: 0 !important;
  }

  /* Hamburger colour follows the bar: white over hero, dark when fixed. */
  .header-style-01 .navbar-area .tdp-mobile-toggler {
    color: #fff !important;
  }
  .header-style-01 .navbar-area.nav-fixed .tdp-mobile-toggler {
    color: #0a0a0f !important;
  }

  /* The wordmark (if visible on the md range) also swaps colour. */
  .header-style-01 .navbar-area .tdp-logo-name {
    color: #fff !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  }
  .header-style-01 .navbar-area.nav-fixed .tdp-logo-name {
    color: #1a1a2e !important;
    text-shadow: none;
  }
}

/* ===== HERO ===== */
.header-area.header-bg-02 {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
/* Overlay - koyu, temiz, kırmızı yok */
.header-area.header-bg-02::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0.3) 70%,
    rgba(0,0,0,0.75) 100%
  );
  z-index: 1;
}
.header-area.header-bg-02::after { display: none !important; }
.header-area.header-bg-02 .header-side-content { display: none !important; }
.header-area.header-bg-02 > .container { position: relative; z-index: 3; }

/* ===== HERO İÇERİK ===== */
.tdp-hero-content { padding: 220px 0 140px; }

.tdp-hero-accent {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
  animation: heroFade 0.6s ease 0.1s both;
}
.tdp-hero-accent .accent-line {
  width: 40px; height: 2px;
  background: #c41e3a;
  border-radius: 1px;
}
.tdp-hero-accent .accent-text {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.tdp-hero-title {
  font-size: 56px; line-height: 1.1;
  font-weight: 800; color: #fff;
  max-width: 680px;
  margin-bottom: 20px;
  animation: heroFade 0.7s ease 0.2s both;
}

.tdp-hero-subtitle {
  font-size: 18px; line-height: 30px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin-bottom: 36px;
  animation: heroFade 0.7s ease 0.35s both;
}

.tdp-hero-desc { display: none; }

@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CTA */
.tdp-hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: heroFade 0.7s ease 0.5s both;
}
.tdp-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px;
  background: #c41e3a; color: #fff;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.tdp-btn-primary:hover {
  background: #e63946; color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,30,58,0.35);
  text-decoration: none;
}
.tdp-btn-primary i { font-size: 11px; transition: transform 0.2s; }
.tdp-btn-primary:hover i { transform: translateX(3px); }

.tdp-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px;
  background: transparent; color: #fff;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.25);
  text-decoration: none;
  transition: all 0.25s ease;
}
.tdp-btn-outline:hover {
  border-color: #fff; background: rgba(255,255,255,0.1);
  color: #fff; text-decoration: none;
  transform: translateY(-2px);
}

/* ===== SCROLL GÖSTERGESİ ===== */
.tdp-scroll-down {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.tdp-scroll-down .scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ===== FOTOĞRAF EFEKTLERİ KALDIR ===== */
.our-party-section-area .party-bg.vision-bg::before { display: none !important; }
.our-party-section-area .party-vision-shape { display: none !important; }

/* ===== ÜYE KARTLARI ===== */
.single-party-member-item .thumb {
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 10px;
}
.single-party-member-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
}

/* ===== YÖNETİM KARTLARI HOVER ===== */
#tdp-yonetim-section .tdp-member-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
#tdp-yonetim-section .tdp-member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(196,30,58,0.15);
}
#tdp-yonetim-section .tdp-member-card:hover img {
  transform: scale(1.05);
}
#tdp-yonetim-section .tdp-member-card .tdp-social-btn:hover {
  background: #c41e3a !important;
  color: #fff !important;
  border-color: #c41e3a !important;
  transform: translateY(-3px);
}

/* ===== COUNTER SECTION - Temiz, Minimal ===== */
.counter-section-area { padding: 70px 0 !important; }
.counter-section-inner.political { background: none !important; box-shadow: none !important; }
.single-counterup-02 {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 20px 10px !important;
  text-align: center !important;
  transition: transform 0.3s ease !important;
}
.single-counterup-02:hover { transform: scale(1.05) !important; }
.single-counterup-02 .content .count-wrap,
.single-counterup-02 .content .count-wrap .count-num {
  font-size: 56px !important;
  font-weight: 900 !important;
  color: #fff !important;
  line-height: 1 !important;
}
.single-counterup-02 .content .title {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.8) !important;
  margin-top: 8px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* ===== TESTIMONIAL ===== */
.testimonial-section-area.testimonial-bg-02 { margin-top: 0 !important; }

/* Footer artık tamamen inline style - ek CSS gerekmez */

/* ===== GENEL EFEKTLER ===== */
.gallery-single-items .thumb::before {
  background: linear-gradient(135deg, rgba(196,30,58,0.7), rgba(154,23,48,0.7)) !important;
}
.boxed-btn.political-btn.style-01 {
  background: #c41e3a !important;
  border-color: #c41e3a !important;
  transition: all 0.3s ease !important;
}
.boxed-btn.political-btn.style-01:hover {
  background: #e63946 !important;
  transform: translateY(-2px) !important;
}
.our-vision-single-item { transition: transform 0.3s ease !important; }
.our-vision-single-item:hover { transform: translateY(-4px) !important; }

/* Vizyon kart accent hover */
.tdp-card-accent { opacity: 0; transition: opacity 0.3s ease; }
div:hover > .tdp-card-accent { opacity: 1 !important; }
.gallery-single-items { transition: transform 0.3s ease !important; }
.gallery-single-items:hover { transform: translateY(-4px) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .tdp-hero-title { font-size: 40px; }
  .tdp-hero-subtitle { font-size: 17px; line-height: 28px; }
  .tdp-hero-content { padding: 160px 0 120px; }
  .header-area.header-bg-02 { min-height: auto; }
  .tdp-logo-text .tdp-logo-name { font-size: 12px; }
  .tdp-logo-text .tdp-logo-sub { font-size: 8px; }
}
@media (max-width: 576px) {
  .tdp-hero-title { font-size: 30px; }
  .tdp-hero-subtitle { font-size: 15px; }
  .tdp-hero-desc { font-size: 14px; }
  .tdp-hero-cta { flex-direction: column; }
  .tdp-hero-cta a { text-align: center; justify-content: center; }
  .tdp-logo-text { display: none; }
}

/* ===========================================================================
   PHASE 10 — Section restorations + responsive polish
   =========================================================================== */

/* Vision (Parti Vizyonumuz — İlkelerimiz) red overlay on background image */
.our-party-section-area .vision-bg,
.our-vision-item .vision-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.our-party-section-area .vision-bg::before,
.our-vision-item .vision-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    oklch(0.18 0.08 270 / 0.85) 0%,
    oklch(0.42 0.2 17 / 0.8) 55%,
    oklch(0.55 0.22 17 / 0.92) 100%
  );
  mix-blend-mode: multiply;
  z-index: 0;
  pointer-events: none;
}
.our-party-section-area .vision-bg > *,
.our-vision-item .vision-bg > * {
  position: relative;
  z-index: 1;
}
.our-party-section-area .vision-bg .content,
.our-vision-item .vision-bg .content {
  color: #fff;
}
.our-party-section-area .vision-bg .content .subtitle p,
.our-vision-item .vision-bg .content .subtitle p {
  color: #fff;
  opacity: 0.92;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.our-party-section-area .vision-bg .content .title,
.our-vision-item .vision-bg .content .title {
  color: #fff !important;
  text-shadow: 0 2px 20px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.3);
}
.our-party-section-area .vision-bg .boxed-btn,
.our-vision-item .vision-bg .boxed-btn {
  background: rgba(255,255,255,0.95) !important;
  color: oklch(0.42 0.22 17) !important;
  border-color: transparent !important;
}
.our-party-section-area .vision-bg .boxed-btn:hover,
.our-vision-item .vision-bg .boxed-btn:hover {
  background: #fff !important;
  transform: translateY(-2px);
}

/* Counter section — mobile font clamps */
@media (max-width: 767px) {
  .counter-section-area .count-wrap,
  .counter-section-inner .count-wrap {
    font-size: 38px !important;
  }
  .counter-section-area .title,
  .counter-section-inner .title {
    font-size: 13px !important;
  }
  .single-counterup-02 { padding: 16px 8px; }
}
@media (max-width: 480px) {
  .counter-section-area .count-wrap,
  .counter-section-inner .count-wrap {
    font-size: 28px !important;
  }
  .single-counterup-02 { padding: 12px 4px; }
}

/* Form inputs — kill the legacy fixed widths on mobile */
@media (max-width: 767px) {
  .form-control,
  .contact-form-area input,
  .contact-form-area textarea,
  .contact-form-area select {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  .contact-form-area input,
  .contact-form-area textarea,
  .contact-form-area select {
    padding: 12px 14px;
    font-size: 14px;
  }
}

/* Principles card typography — mobile scale */
@media (max-width: 767px) {
  .our-vision-item .vision-bg .title { font-size: 26px; line-height: 1.2; }
  .our-vision-item .vision-bg .subtitle p { font-size: 12px; }
  .our-party-section-area .single-political-item .title { font-size: 18px; }
  .our-party-section-area .single-political-item p { font-size: 13px; line-height: 1.55; }
}

/* Member cards — mobile scale */
@media (max-width: 767px) {
  .political-single-item,
  .team-single-item {
    min-height: auto;
  }
  .political-single-item .content .title,
  .team-single-item .content .title {
    font-size: 18px;
  }
  .political-single-item .subtitle,
  .team-single-item .subtitle {
    font-size: 12px;
  }
}

/* Testimonial layout lives in responsive-fixes.css now (.tdp-testi-grid). */

/* Navbar mobile rules moved to responsive-fixes.css (loaded globally) so
   the white-collapse fix applies on every route, not just the homepage. */

/* Global — kill horizontal scroll and normalize container padding on phones */
@media (max-width: 576px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .container { padding-left: 16px; padding-right: 16px; }
  img { max-width: 100%; height: auto; }
}

/* ===== HERO SLIDER (admin-controlled, multi-slide) ===========================
   Each slide fills the viewport and overlays the user's chosen text/CTAs over
   the bg image. Uses Swiper for transitions; pagination dots are styled here. */
.tdp-hero-slider {
  position: relative;
  isolation: isolate;
}
.tdp-hero-slider .swiper { width: 100%; }
.tdp-hero-slide {
  position: relative;
  width: 100%;
  /* svh = small viewport height; on iOS this is the *short* viewport
     (URL bar visible) so the slide never gets cropped by the bottom bar. */
  min-height: 100svh;
  background-color: #1a1a2e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: calc(80px + env(safe-area-inset-top)) 0 calc(60px + env(safe-area-inset-bottom));
}
.tdp-hero-slide .container { width: 100%; position: relative; z-index: 2; }
.tdp-hero-slider .tdp-hero-content {
  /* override the static page-index hero padding — slider handles spacing
     via .tdp-hero-slide above. */
  padding: 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
}
.tdp-hero-slider .tdp-hero-title {
  font-size: clamp(28px, 6vw, 56px);
  max-width: none;
}
.tdp-hero-slider .tdp-hero-subtitle {
  font-size: clamp(14px, 2.4vw, 18px);
  max-width: none;
}

/* Alignment variants — applied to .tdp-hero-content. */
.tdp-hero-align-left .tdp-hero-content { align-items: flex-start; text-align: left; margin-right: auto; }
.tdp-hero-align-center .tdp-hero-content { align-items: center; text-align: center; margin: 0 auto; }
.tdp-hero-align-right .tdp-hero-content { align-items: flex-end; text-align: right; margin-left: auto; }

/* Pagination dots — bottom center, expanding active indicator. */
.tdp-hero-slider .swiper-pagination {
  position: absolute;
  bottom: calc(28px + env(safe-area-inset-bottom));
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
  pointer-events: none;
}
.tdp-hero-bullet {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  pointer-events: auto;
  transition: width 0.25s ease, background 0.25s ease;
}
.tdp-hero-bullet:hover { background: rgba(255, 255, 255, 0.7); }
.tdp-hero-bullet-active { width: 28px; background: #ffffff; }

/* Mobile button stack so two CTAs don't squeeze on a 360 px viewport. */
@media (max-width: 575px) {
  .tdp-hero-slider .tdp-hero-cta { flex-direction: column; align-items: stretch; }
  .tdp-hero-slider .tdp-hero-cta .tdp-btn-primary,
  .tdp-hero-slider .tdp-hero-cta .tdp-btn-outline { justify-content: center; }
  .tdp-hero-align-center .tdp-hero-cta,
  .tdp-hero-align-right .tdp-hero-cta { align-items: center; }
}
