/* ==========================================================================
   HAN GRUP HOLDİNG - İNTERAKTİF DİKEY ŞERİT / AKORDEON PORTAL (INDEX2)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS DEĞİŞKENLERİ & TEMEL RENKLER
   -------------------------------------------------------------------------- */
:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent-color: #1e3a8a;
  --border-light: #e2e8f0;

  --header-height: 80px;
  --transition-accordion: 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   2. MAIN CONTAINER & HEADER
   -------------------------------------------------------------------------- */
.app-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-header {
  height: var(--header-height);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  z-index: 20;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
}

.header-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.view-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.view-switch-btn:hover {
  background: #f1f5f9;
  color: var(--accent-color);
  border-color: #cbd5e1;
}

.hamburger-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px;
  transition: all var(--transition-fast);
}

.hamburger-bar {
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn:hover {
  background: #f8fafc;
  border-color: var(--accent-color);
}

.hamburger-btn:hover .hamburger-bar {
  background-color: var(--accent-color);
}

.hamburger-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   3. DİKEY ŞERİTLER / AKORDEON PORTAL (VERTICAL STRIPS ACCORDION)
   -------------------------------------------------------------------------- */
.accordion-stage {
  flex: 1;
  width: 100%;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  background-color: #f1f5f9;
}

.accordion-container {
  display: flex;
  width: 100%;
  height: 100%;
}

/* DİKEY MARKA ŞERİDİ */
.brand-strip {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-right: 1px solid var(--border-light);
  cursor: pointer;
  transition: flex var(--transition-accordion), background-color 0.4s ease;
}

.brand-strip:last-child {
  border-right: none;
}

/* HOVER / ACTIVE HALİNDE GENİŞLEME */
.brand-strip:hover,
.brand-strip.active {
  flex: 4.5;
  background: #ffffff;
  box-shadow: 0 0 30px rgba(15, 23, 42, 0.08);
  z-index: 10;
}

/* ARKA PLAN GRAFİK VE PATTERN DEKORASYONLARI */
.strip-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.98) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.strip-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  transition: opacity 0.4s ease;
  z-index: 1;
  background-position: center;
  background-size: cover;
}

.brand-strip:hover .strip-bg-pattern,
.brand-strip.active .strip-bg-pattern {
  opacity: 0.12;
}

/* Marka Özel Pattern Desenleri */
.bg-gayrimenkul { background-image: radial-gradient(#047857 2px, transparent 2px); background-size: 24px 24px; }
.bg-emlak { background-image: radial-gradient(#c2410c 2px, transparent 2px); background-size: 24px 24px; }
.bg-garage { background-image: radial-gradient(#b91c1c 2px, transparent 2px); background-size: 24px 24px; }
.bg-lift { background-image: radial-gradient(#b45309 2px, transparent 2px); background-size: 24px 24px; }
.bg-teknoloji { background-image: radial-gradient(#1d4ed8 2px, transparent 2px); background-size: 24px 24px; }
.bg-hanex { background-image: radial-gradient(#0e7490 2px, transparent 2px); background-size: 24px 24px; }
.bg-kilif { background-image: radial-gradient(#a21caf 2px, transparent 2px); background-size: 24px 24px; }

/* DARALMIŞ İÇERİK (COLLAPSED STATE) */
.strip-collapsed-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 1rem;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.brand-strip:hover .strip-collapsed-content,
.brand-strip.active .strip-collapsed-content {
  opacity: 0;
}

.strip-number {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--strip-accent);
  opacity: 0.6;
}

.strip-small-logo {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  max-width: 110px;
  height: auto;
  max-height: 70px;
  object-fit: contain;
}

.strip-vertical-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  white-space: nowrap;
}

/* GENİŞLEMİŞ İÇERİK (EXPANDED STATE) */
.strip-expanded-content {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 3.5rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.brand-strip:hover .strip-expanded-content,
.brand-strip.active .strip-expanded-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.brand-badge-pill {
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--border-light);
  color: var(--strip-accent);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.brand-logo-hero {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.brand-logo-hero img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.brand-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 2rem;
}

.strip-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
  background: var(--strip-accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
  transition: all var(--transition-fast);
}

.strip-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
  filter: brightness(1.08);
}

/* --------------------------------------------------------------------------
   6. SUB-BRANDS (ALT MARKALAR)
   -------------------------------------------------------------------------- */
.sub-brand-section {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 480px;
}

.sub-brand-heading {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.sub-brand-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sub-brand-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.sub-brand-item:hover {
  background: #ffffff;
  border-color: var(--strip-accent, var(--accent-color));
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transform: translateY(-2px);
}

.sub-brand-item-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.4rem;
  border: 1px solid var(--border-light);
}

.sub-brand-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sub-brand-item-info h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.sub-brand-item-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   4. SAĞ İLETİŞİM ÇEKMECESİ (SIDE DRAWER)
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 100vw;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--border-light);
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.08);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.drawer-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.close-drawer-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.close-drawer-btn:hover {
  background: #e2e8f0;
  color: var(--text-primary);
  transform: rotate(90deg);
}

.drawer-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-heading svg {
  color: var(--accent-color);
}

.contact-card {
  padding: 1.25rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.company-fullname {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-color);
}

.address-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.88rem;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact-link {
  color: var(--text-primary);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.contact-value {
  color: var(--text-secondary);
  font-weight: 500;
}

.hours-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: rgba(30, 58, 138, 0.08);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.drawer-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE EKRAN UYARLAMALARI (MOBIL & TABLET)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .accordion-container {
    flex-direction: column;
    overflow-y: auto;
  }

  .brand-strip {
    min-height: 90px;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .brand-strip:hover,
  .brand-strip.active {
    min-height: 380px;
  }

  .strip-collapsed-content {
    flex-direction: row;
    padding: 1.5rem 2rem;
  }

  .strip-small-logo {
    position: static;
    transform: none;
    width: 60px;
  }

  .strip-vertical-title {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .strip-expanded-content {
    padding: 2.5rem 2rem;
  }

  .brand-title {
    font-size: 1.6rem;
  }
}
