/* ==========================================================================
   DIZANOR AILE360 — SINGLE SOURCE OF TRUTH GLOBAL SHELL & DESIGN TOKENS
   Shared pixel-identically across /, /sehir, /asistan, /rehber, /kurum/*
   ========================================================================== */

:root {
  --a360-bg: #F6FAFF;
  --a360-surface: #FFFFFF;
  --a360-soft: #EFF6FF;
  --a360-border: #DCE7F5;
  --a360-border-strong: #CBD5E1;
  --a360-navy: #061442;
  --a360-ink: #061442;
  --a360-muted: #475569;
  --a360-sage: #066AFF;
  --a360-sage-dark: #0255D4;
  --a360-sage-light: #EFF6FF;
  --a360-amber: #F59E0B;
  --a360-amber-hover: #D97706;
  --a360-amber-light: #FEF3C7;
  --a360-rose: #E11D48;
  --a360-topbar-h: 34px;
  --a360-header-h: 62px;
  --z-header: 45;
  --z-dropdown: 60;
  --z-modal: 80;
  --z-toast: 90;
}

body.night-mode,
[data-theme="night"] {
  --a360-bg: #0D1520;
  --a360-surface: #152030;
  --a360-soft: #1B293D;
  --a360-border: #26354A;
  --a360-border-strong: #334155;
  --a360-ink: #F1F5F9;
  --a360-muted: #94A3B8;
  --a360-sage-light: #163832;
  --a360-amber-light: #3A2618;
}

/* --------------------------------------------------------------------------
   ROW 1: CORPORATE DIZANOR TOPBAR (34px, Zero Overlap at ALL Widths)
   -------------------------------------------------------------------------- */
.a360-topbar {
  height: var(--a360-topbar-h);
  background: var(--a360-navy);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 11.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 50;
}

body.night-mode .a360-topbar,
[data-theme="night"] .a360-topbar {
  background: #070E1B;
}

.a360-topbar-in {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
}

.a360-topbar-left,
.a360-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.a360-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #E2E8F0;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.a360-topbar-link:hover {
  color: #FCD34D;
}

.a360-topbar-sep {
  color: rgba(255, 255, 255, 0.24);
  user-select: none;
}

.a360-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
}
.a360-dot.sky { background: #38BDF8; box-shadow: 0 0 8px rgba(56, 189, 248, 0.8); }
.a360-dot.emerald { background: #34D399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); }

.a360-topbar-shop {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F59E0B;
  color: #061442;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 11px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.a360-topbar-shop:hover {
  background: #FCD34D;
  color: #061442;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   ROW 2: PIXEL-IDENTICAL GLOBAL HEADER (62px, Single Row, Zero Wrapping)
   -------------------------------------------------------------------------- */
.a360-global-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--a360-border);
  box-shadow: 0 6px 20px -12px rgba(19, 34, 56, 0.12);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body.night-mode .a360-global-header,
[data-theme="night"] .a360-global-header {
  background: rgba(15, 23, 38, 0.95);
  border-bottom-color: var(--a360-border);
}

.a360-global-header-in {
  max-width: 1440px;
  height: var(--a360-header-h);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
}

/* Left: Brand Lockup (100% identical across all pages) */
.a360-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.a360-brand img {
  height: 26px;
  width: auto;
  display: block;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 2px 6px;
}

.a360-brand-sep {
  width: 1px;
  height: 20px;
  background: var(--a360-border-strong);
  display: inline-block;
}

.a360-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #061442 0%, #066AFF 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 3px 10px -3px rgba(31, 110, 92, 0.4);
}

/* Center: Primary 4-Tab Ecosystem Navigation */
.a360-primary-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--a360-soft);
  border: 1px solid var(--a360-border);
  border-radius: 13px;
  padding: 3px;
  flex-shrink: 0;
}

.a360-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--a360-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.a360-nav-pill:hover {
  color: var(--a360-ink);
  background: rgba(255, 255, 255, 0.75);
}

body.night-mode .a360-nav-pill:hover,
[data-theme="night"] .a360-nav-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.a360-nav-pill.is-active {
  background: var(--a360-navy);
  color: #FFFFFF;
  box-shadow: 0 4px 12px -4px rgba(31, 110, 92, 0.55);
}

/* Right: Compact Actions (Single line, consistent buttons) */
.a360-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.a360-tool-btn {
  height: 36px;
  padding: 0 11px;
  border-radius: 11px;
  border: 1px solid var(--a360-border);
  background: var(--a360-surface);
  color: var(--a360-ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.a360-tool-btn:hover {
  border-color: var(--a360-sage);
  background: var(--a360-sage-light);
  color: var(--a360-sage-dark);
}

body.night-mode .a360-tool-btn:hover,
[data-theme="night"] .a360-tool-btn:hover {
  color: #A7F3D0;
}

.a360-tool-btn.loyalty {
  background: var(--a360-amber-light);
  border-color: rgba(223, 122, 38, 0.35);
  color: #9A3412;
}

.a360-count-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  background: #FFE4E6;
  color: #E11D48;
}

.a360-cta-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 11px;
  border: 0;
  background: var(--a360-amber);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 12px -3px rgba(223, 122, 38, 0.42);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.a360-cta-btn:hover {
  background: var(--a360-amber-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Compact View Switch inside Directory Global Header */
.a360-view-grp {
  display: inline-flex;
  align-items: center;
  background: var(--a360-soft);
  border: 1px solid var(--a360-border);
  border-radius: 11px;
  padding: 2px;
  gap: 2px;
}

.a360-view-grp .d360-view-btn {
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--a360-muted);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.a360-view-grp .d360-view-btn.is-active {
  background: var(--a360-surface);
  color: var(--a360-sage);
  box-shadow: 0 2px 6px rgba(19, 34, 56, 0.08);
}

/* Mobile Secondary Strip for Primary Nav (< 960px) */
.a360-mobile-nav {
  display: none;
  border-top: 1px solid var(--a360-border);
  background: var(--a360-bg);
  padding: 6px 14px;
  overflow-x: auto;
  gap: 6px;
  -webkit-overflow-scrolling: touch;
}

.a360-mobile-nav::-webkit-scrollbar { display: none; }

/* --------------------------------------------------------------------------
   SHARED WARM EDITORIAL HERO (Matches /sehir & /asistan)
   -------------------------------------------------------------------------- */
.a360-editorial-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 55%, #F8FBFF 100%);
  border: 1px solid var(--a360-border);
  color: var(--a360-ink);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 16px 36px -14px rgba(19, 34, 56, 0.09);
}

[data-theme="night"] .a360-editorial-hero,
body.night-mode .a360-editorial-hero {
  background: radial-gradient(circle at 15% 20%, rgba(31, 110, 92, 0.26) 0%, rgba(30, 46, 66, 0.65) 52%, rgba(14, 22, 33, 0.98) 100%);
}

.a360-ed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

@media (min-width: 960px) {
  .a360-ed-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.a360-ed-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--a360-surface);
  border: 1px solid var(--a360-border);
  font-size: 11px;
  font-weight: 800;
  color: var(--a360-sage);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.a360-ed-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 220px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  box-shadow: 0 14px 30px -12px rgba(19, 34, 56, 0.22);
}

.a360-ed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.a360-ed-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(13, 21, 32, 0.86) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #FFFFFF;
}

.a360-ed-media-tag {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--a360-sage);
  color: #FFFFFF;
  margin-bottom: 6px;
}

.a360-ed-media-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
}

.a360-ed-media-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
}

.a360-ed-media-cta:hover {
  background: var(--a360-amber);
  border-color: var(--a360-amber);
}

/* --------------------------------------------------------------------------
   COMPACT ATÖLYE BANNER FOR 52% SPLIT COLUMN ON / (Never Squishes!)
   -------------------------------------------------------------------------- */
.a360-compact-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(100deg, #132238 0%, #165345 100%);
  color: #FFFFFF;
  border: 1px solid rgba(31, 110, 92, 0.3);
  box-shadow: 0 12px 28px -12px rgba(19, 34, 56, 0.28);
  margin-bottom: 16px;
}

.a360-cb-copy {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.a360-cb-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.a360-cb-tag {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.a360-cb-tag.amber { background: var(--a360-amber); color: #FFFFFF; }
.a360-cb-tag.sage { background: rgba(255, 255, 255, 0.15); color: #A7F3D0; }

.a360-cb-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
  color: #FFFFFF;
}

.a360-cb-desc {
  margin: 0;
  font-size: 12.5px;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.a360-cb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.a360-cb-media {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  background: #0F172A;
}

.a360-cb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.a360-cb-price {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(13, 21, 32, 0.85);
  backdrop-filter: blur(6px);
  color: #FCD34D;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Responsive Breakpoints */
@media (max-width: 1280px) {
  .a360-hide-xl { display: none !important; }
  .a360-view-grp { display: none !important; }
}

@media (max-width: 1080px) {
  .a360-hide-lg { display: none !important; }
  .a360-nav-pill { padding: 7px 10px; font-size: 12px; }
}

@media (max-width: 959px) {
  .a360-primary-nav { display: none !important; }
  .a360-mobile-nav { display: flex !important; }
  .a360-hide-md { display: none !important; }
}

@media (max-width: 680px) {
  .a360-hide-sm { display: none !important; }
  .a360-global-header-in { padding: 0 12px; height: 56px; }
  .a360-topbar-in { padding: 0 12px; }
  .a360-brand img { height: 23px; }
  .a360-brand-sep { display: none; }
  .a360-tool-btn { height: 32px; padding: 0 8px; font-size: 11.5px; }
  .a360-cta-btn { height: 32px; padding: 0 10px; font-size: 11.5px; }
  .a360-compact-banner { grid-template-columns: 1fr; }
  .a360-cb-media { height: 155px; }
}
