/* ==========================================================================
   PAN-GO & SOSİS-GO DUAL BRAND GOURMET HUB
   Real Shopfront Aesthetic:
   - Sosis-Go: White Signboard & Vibrant Red Logo
   - Pan-Go: Black Signboard & Vibrant Yellow Logo
   ========================================================================== */

:root {
  /* Sosis-Go: White Signboard + Vibrant Red Brand Identity */
  --sosis-red-primary: #dc2626;
  --sosis-soft-tag: #fee2e2;
  --sosis-soft-text: #991b1b;
  --sosis-text-secondary: #475569;

  /* Pan-Go: Black Signboard + Vibrant Yellow Brand Identity */
  --pango-yellow-primary: #facc15;
  --pango-soft-tag: rgba(250, 204, 21, 0.15);
  --pango-soft-text: #fef08a;
  --pango-text-secondary: #cbd5e1;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: #121013;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   APP SHELL (SPLIT SCREEN: WHITE/RED LEFT VS BLACK/YELLOW RIGHT)
   ========================================================================== */

.hub-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  overflow: hidden;
}

/* ==========================================================================
   TOP FLOATING BRAND BAR
   ========================================================================== */

.hub-header {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 8px 22px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.brand-hub-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-sosis {
  background: var(--sosis-red-primary);
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.6);
}

.dot-pango {
  background: #eab308;
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.7);
}

.title-slash {
  opacity: 0.45;
  font-weight: 400;
  margin: 0 2px;
}

.hub-header-tag {
  font-size: 12px;
  color: #475569;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  padding-left: 12px;
  font-weight: 600;
}

.hub-header-links {
  display: flex;
  gap: 6px;
}

.header-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 14px;
  background: #0f172a;
  border: 1px solid #0f172a;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition-fast);
}

.header-menu-link:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  transform: translateY(-1px);
}

/* ==========================================================================
   VERTICAL ARCHITECTURAL DIVIDER & CENTER SELECTION BADGE
   ========================================================================== */

.hub-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.8) 25%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.8) 75%,
    rgba(255, 255, 255, 0.15) 100%
  );
  transform: translateX(-50%);
  z-index: 30;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.divider-badge-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 35;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.divider-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.08);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.badge-dot.dot-left {
  background: var(--sosis-red-primary);
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.5);
}

.badge-dot.dot-right {
  background: #eab308;
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.6);
}

.badge-text {
  font-family: var(--font-heading);
  font-size: 11.5px;
  letter-spacing: 1.8px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  white-space: nowrap;
}

/* ==========================================================================
   INTERACTIVE SIDES
   ========================================================================== */

.hub-side {
  flex: 1 1 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 0 96px;
  overflow: hidden;
  transition: var(--transition-smooth);
  will-change: flex-grow, flex-basis;
}

/* Whole side is clickable; the card's own buttons sit above this layer */
.side-link {
  position: absolute;
  inset: 0;
  z-index: 5;
}

/* Photo Background Layer */
.side-photo {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  z-index: 1;
  pointer-events: none;
}

.side-photo-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.side-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.5s ease, background 0.5s ease;
}

/* --------------------------------------------------------------------------
   SOSİS-GO (LEFT SIDE - BEYAZ TABELA & VIBRANT RED IDENTITY)
   -------------------------------------------------------------------------- */

.sosis-side {
  background-color: #faf7f2;
}

.sosis-side .side-photo-bg {
  object-position: 0% 30%;
  filter: brightness(0.96) contrast(1.1) saturate(1.2);
}

.sosis-side .side-overlay {
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.5) 0%, rgba(254, 242, 242, 0.6) 50%, rgba(254, 226, 226, 0.78) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.22) 0%, rgba(255, 255, 255, 0.12) 35%, rgba(220, 38, 38, 0.55) 100%);
}

.sosis-side .side-card {
  background: #ffffff;
  border: 1px solid rgba(220, 38, 38, 0.16);
  box-shadow:
    0 24px 60px rgba(220, 38, 38, 0.12),
    0 6px 18px rgba(15, 23, 42, 0.06);
}

.sosis-side .brand-subtitle {
  color: #b91c1c;
}

.sosis-side .brand-description {
  color: var(--sosis-text-secondary);
}

.sosis-side .feature-pill {
  background: var(--sosis-soft-tag);
  color: var(--sosis-soft-text);
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.sosis-side .cta-button {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 60%, #991b1b 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.35);
}

.sosis-side .cta-button:hover {
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.5);
}

.sosis-side .wa-button {
  background: #ffffff;
  color: #b91c1c;
  border: 2px solid #dc2626;
}

.sosis-side .wa-button:hover {
  background: #fef2f2;
}

/* --------------------------------------------------------------------------
   PAN-GO (RIGHT SIDE - SİYAH TABELA & VIBRANT YELLOW IDENTITY)
   -------------------------------------------------------------------------- */

.pango-side {
  background-color: #121013;
}

.pango-side .side-photo-bg {
  object-position: 100% 30%;
  filter: brightness(1.08) contrast(1.15) saturate(1.2);
}

.pango-side .side-overlay {
  background:
    radial-gradient(circle at 50% 55%, rgba(26, 22, 27, 0.5) 0%, rgba(18, 15, 19, 0.66) 50%, rgba(10, 9, 11, 0.86) 100%),
    linear-gradient(180deg, rgba(10, 9, 11, 0.22) 0%, rgba(24, 21, 25, 0.18) 35%, rgba(0, 0, 0, 0.8) 100%);
}

.pango-side .side-card {
  background: #181519;
  border: 1px solid rgba(250, 204, 21, 0.28);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(250, 204, 21, 0.08);
}

.pango-side .brand-subtitle {
  color: var(--pango-yellow-primary);
}

.pango-side .brand-description {
  color: var(--pango-text-secondary);
}

.pango-side .feature-pill {
  background: var(--pango-soft-tag);
  color: var(--pango-soft-text);
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.pango-side .cta-button {
  background: linear-gradient(135deg, #facc15 0%, #eab308 50%, #ca8a04 100%);
  color: #0f172a;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(234, 179, 8, 0.35);
}

.pango-side .cta-button:hover {
  box-shadow: 0 14px 30px rgba(234, 179, 8, 0.5);
}

.pango-side .wa-button {
  background: transparent;
  color: #facc15;
  border: 2px solid #facc15;
}

.pango-side .wa-button:hover {
  background: rgba(250, 204, 21, 0.12);
}

/* ==========================================================================
   CARDS COMMON ARCHITECTURE
   ========================================================================== */

.side-card {
  position: relative;
  z-index: 10;
  max-width: 440px;
  width: 86%;
  padding: 34px 36px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 28px;
  transform: translateY(0);
  transition: var(--transition-smooth);
  pointer-events: none;
}

.side-card a {
  pointer-events: auto;
}

/* Brand Logo */
.side-card h2 {
  width: 100%;
  display: flex;
  justify-content: center;
}

.brand-logo-img {
  max-width: 220px;
  width: 75%;
  height: auto;
  margin: 0 auto 14px;
  display: block;
}

/* Brand Subtitle / Tagline */
.brand-subtitle {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Description */
.brand-description {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
  font-weight: 600;
  max-width: 350px;
}

/* Feature Badges */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.feature-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

/* Call to Action Buttons */
.cta-button,
.wa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 290px;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  transition: var(--transition-fast);
}

.wa-button {
  margin-top: 10px;
  letter-spacing: 0.4px;
  text-transform: none;
  font-size: 14px;
}

.cta-button svg,
.wa-button svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.cta-button:hover,
.wa-button:hover {
  transform: translateY(-2px);
}

.cta-button:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   HOVER & INTERACTIVE EXPANSION (fare kullanan geniş ekranlar)
   ========================================================================== */

@media (min-width: 901px) {
  .side-card {
    min-height: 470px;
    justify-content: center;
  }

  /* Fotoğraf iki yarıda tek parça: ortadaki kolon, ayırıcı çizgiyle çakışır */
  .hub-wrapper {
    container-type: inline-size;
  }

  .side-photo {
    inset: 0 auto;
    width: 100vw;
    width: 100cqw;
    height: 100%;
  }

  .sosis-side .side-photo {
    left: 0;
  }

  .pango-side .side-photo {
    right: 0;
  }

  .sosis-side .side-photo-bg,
  .pango-side .side-photo-bg {
    object-position: 50% 40%;
  }

  .sosis-side .side-photo-bg {
    transform-origin: 25% 50%;
  }

  .pango-side .side-photo-bg {
    transform-origin: 75% 50%;
  }

  .hub-wrapper:has(.sosis-side:hover) .sosis-side,
  .hub-wrapper.hover-left .sosis-side {
    flex: 1.25 1 56%;
  }

  .hub-wrapper:has(.sosis-side:hover) .pango-side,
  .hub-wrapper.hover-left .pango-side {
    flex: 0.75 1 44%;
    filter: brightness(0.9);
  }

  .hub-wrapper:has(.sosis-side:hover) .hub-divider,
  .hub-wrapper.hover-left .hub-divider,
  .hub-wrapper:has(.sosis-side:hover) .divider-badge-wrapper,
  .hub-wrapper.hover-left .divider-badge-wrapper {
    left: 56%;
  }

  .hub-wrapper:has(.sosis-side:hover) .sosis-side .side-photo-bg,
  .hub-wrapper.hover-left .sosis-side .side-photo-bg {
    transform: scale(1.06);
  }

  .hub-wrapper:has(.sosis-side:hover) .sosis-side .side-overlay,
  .hub-wrapper.hover-left .sosis-side .side-overlay {
    opacity: 0.82;
  }

  .hub-wrapper:has(.sosis-side:hover) .sosis-side .side-card,
  .hub-wrapper.hover-left .sosis-side .side-card {
    transform: translateY(-6px);
    box-shadow:
      0 30px 70px rgba(220, 38, 38, 0.2),
      0 8px 22px rgba(15, 23, 42, 0.08);
  }

  .hub-wrapper:has(.pango-side:hover) .pango-side,
  .hub-wrapper.hover-right .pango-side {
    flex: 1.25 1 56%;
  }

  .hub-wrapper:has(.pango-side:hover) .sosis-side,
  .hub-wrapper.hover-right .sosis-side {
    flex: 0.75 1 44%;
    filter: brightness(0.92);
  }

  .hub-wrapper:has(.pango-side:hover) .hub-divider,
  .hub-wrapper.hover-right .hub-divider,
  .hub-wrapper:has(.pango-side:hover) .divider-badge-wrapper,
  .hub-wrapper.hover-right .divider-badge-wrapper {
    left: 44%;
  }

  .hub-wrapper:has(.pango-side:hover) .pango-side .side-photo-bg,
  .hub-wrapper.hover-right .pango-side .side-photo-bg {
    transform: scale(1.06);
  }

  .hub-wrapper:has(.pango-side:hover) .pango-side .side-overlay,
  .hub-wrapper.hover-right .pango-side .side-overlay {
    opacity: 0.82;
  }

  .hub-wrapper:has(.pango-side:hover) .pango-side .side-card,
  .hub-wrapper.hover-right .pango-side .side-card {
    transform: translateY(-6px);
    border-color: rgba(250, 204, 21, 0.5);
    box-shadow:
      0 30px 70px rgba(0, 0, 0, 0.7),
      0 0 35px rgba(250, 204, 21, 0.16);
  }
}

/* ==========================================================================
   FOOTER BAR (BRIDGES BOTH WORLDS)
   ========================================================================== */

.hub-footer {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 22px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.06);
  font-size: 12.5px;
  letter-spacing: 0.3px;
  color: #334155;
  font-weight: 600;
  white-space: nowrap;
}

.footer-menu-btn {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  font-weight: 700;
  background: #0f172a;
  padding: 6px 14px;
  border-radius: 999px;
  transition: var(--transition-fast);
}

.footer-menu-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 1100px) and (min-width: 901px) {
  .hub-header-tag {
    display: none;
  }
}

@media (max-width: 900px) {
  .hub-wrapper {
    flex-direction: column;
    min-height: 0;
  }

  .hub-header {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    order: 0;
    margin: 12px 12px 0;
    padding: 8px 8px 8px 16px;
    justify-content: space-between;
    border-radius: 22px;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .hub-header-tag {
    display: none;
  }

  .header-menu-link {
    min-height: 44px;
    padding: 8px 14px;
  }

  /* On mobile the header sits in the flow above both photo halves */
  .hub-wrapper {
    background: linear-gradient(180deg, #faf7f2 0%, #faf7f2 50%, #121013 50%, #121013 100%);
  }

  .hub-side {
    flex: none;
    width: 100%;
    padding: 44px 16px 52px;
  }

  .sosis-side {
    order: 1;
  }

  .divider-badge-wrapper {
    order: 2;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    align-self: center;
    margin: -22px 0;
  }

  .pango-side {
    order: 3;
  }

  .hub-divider {
    display: none;
  }

  .divider-badge {
    padding: 9px 18px;
  }

  .side-card {
    padding: 26px 20px 24px;
    width: 100%;
    max-width: 460px;
    border-radius: 22px;
  }

  .brand-logo-img {
    max-width: 190px;
  }

  .brand-description {
    font-size: 14.5px;
    margin-bottom: 16px;
  }

  .feature-pills {
    margin-bottom: 18px;
  }

  .cta-button {
    font-size: 13px;
  }

  .sosis-side .side-photo-bg,
  .pango-side .side-photo-bg {
    object-position: center 35%;
  }

  .hub-footer {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    order: 4;
    margin: 0;
    border-radius: 0;
    border: 0;
    border-top: 1px solid rgba(250, 204, 21, 0.2);
    background: #181519;
    color: #e2e8f0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 20px 16px 40px;
    white-space: normal;
    font-size: 14px;
  }

  .footer-menu-btn {
    min-height: 44px;
    justify-content: center;
    width: 100%;
    margin-top: 6px;
    background: #ffffff;
    color: #0f172a;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hub-side,
  .side-card,
  .side-photo-bg,
  .hub-divider,
  .divider-badge-wrapper,
  .cta-button,
  .wa-button {
    transition: none;
  }
}
