/* Tema 3 — istanbulmedusa vitrin (4 kolon grid, mobil + masaüstü) */

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

:root {
  --pink: #e91e8c;
  --pink-light: #e91e8ccc;
  --purple: #7c3aed;
  --green: #25d366;
  --bg: #06060f;
  --bg-1: #0c0c18;
  --bg-2: #11111e;
  --border: rgba(255, 255, 255, 0.06);
  --text: #f0f0ff;
  --text-muted: #7777aa;
  --card-bg: rgba(11, 11, 20, 0.9);
  --font-h: 'Outfit', sans-serif;
  --font-b: 'Inter', sans-serif;
  --r-lg: 22px;
  --marquee-bg: #0f0f1b;
  --marquee-text: #ffb703;
  --grid-gap: 18px;
  --grid-gap-mobile: 10px;
  --t3-brand: #8f8ab8;
  --t3-brand-soft: #6e6894;
  --card-name-size: 0.5rem;
  --card-name-bg: rgba(0, 0, 0, 0.6);
  --gallery-aspect: 2 / 3;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.tema-3 {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body.tema-3::before {
  content: '';
  position: fixed;
  top: -30vh;
  left: -20vw;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(233, 30, 140, 0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

body.tema-3::after {
  content: '';
  position: fixed;
  bottom: -20vh;
  right: -15vw;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Marquee */
.vtr-marquee-wrapper {
  position: relative;
  width: 100%;
  background: var(--marquee-bg);
  border-bottom: 1px solid rgba(233, 30, 140, 0.15);
  z-index: 99;
  overflow: hidden;
}

.vtr-marquee-row {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  display: flex;
  align-items: center;
}

.vtr-marquee-row::before,
.vtr-marquee-row::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.vtr-marquee-row::before {
  left: 0;
  background: linear-gradient(to right, var(--marquee-bg), transparent);
}

.vtr-marquee-row::after {
  right: 0;
  background: linear-gradient(to left, var(--marquee-bg), transparent);
}

.vtr-marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: vtr-marquee-anim 55s linear infinite;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--marquee-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vtr-marquee-row:hover .vtr-marquee-content {
  animation-play-state: paused;
}

@keyframes vtr-marquee-anim {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Header — Tema 3 koyu vitrin (referans nav stili) */
body.tema-3 .t3-header {
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding:
    calc(10px + env(safe-area-inset-top, 0px))
    max(18px, env(safe-area-inset-right, 0px))
    10px
    max(18px, env(safe-area-inset-left, 0px));
  background: rgba(6, 6, 15, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(233, 30, 140, 0.12);
  box-sizing: border-box;
}

body.tema-3 .t3-brand {
  margin: 0;
  max-width: 100%;
}

body.tema-3 .t3-brand a {
  display: block;
  font-family: var(--font-h);
  font-size: clamp(0.64rem, 2.5vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.34em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: var(--t3-brand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 16px rgba(124, 58, 237, 0.12);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

body.tema-3 .t3-brand a:hover {
  color: #b4aed8;
  text-shadow: 0 0 20px rgba(233, 30, 140, 0.18);
}

body.tema-3 .t3-ilan-ver-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  font-family: var(--font-h);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(233, 30, 140, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.tema-3 .t3-ilan-ver-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(233, 30, 140, 0.45);
}

/* Nav (legacy — kaldırıldı) */
.vtr-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  flex: 1;
}

.vtr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  padding: 30px 0 32px;
}

/* Cards */
.vtr-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.1, 1), box-shadow 0.4s ease, border-color 0.3s;
  animation: vtr-card-in 0.55s ease both;
}

@keyframes vtr-card-in {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.vtr-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 28px 72px rgba(233, 30, 140, 0.18), 0 0 0 1px rgba(233, 30, 140, 0.2);
  border-color: rgba(233, 30, 140, 0.3);
}

.vtr-card--mega {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.vtr-ad-card {
  border: 1px dashed var(--pink) !important;
  box-shadow: 0 0 15px rgba(233, 30, 140, 0.1);
}

.vtr-card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  border-radius: inherit;
}

.vtr-card-img-wrap {
  position: relative;
  aspect-ratio: var(--gallery-aspect);
  overflow: hidden;
  background: var(--bg-2);
}

.vtr-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
  display: block;
}

.vtr-card:hover .vtr-card-img {
  transform: scale(1.1);
  filter: brightness(0.9);
}

.vtr-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: linear-gradient(135deg, var(--bg-2), #11111e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.1);
}

.vtr-card-placeholder--ad {
  position: absolute;
  inset: 0;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(135deg, #2c1a4d 0%, #1a1a2e 100%);
}

.vtr-ad-icon {
  font-size: 2.8rem;
  animation: vtr-pulse 2s infinite alternate;
}

.vtr-ad-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--pink);
  background: rgba(233, 30, 140, 0.1);
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(233, 30, 140, 0.2);
}

@keyframes vtr-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

.vtr-card-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to bottom, rgba(6, 6, 15, 0.6), transparent);
  pointer-events: none;
  z-index: 1;
}

.vtr-card-overlay-bot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(4, 4, 12, 1) 0%, rgba(4, 4, 12, 0.7) 45%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.vtr-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px 12px;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
}

.vtr-card-name {
  font-family: var(--font-h);
  font-size: var(--card-name-size);
  font-weight: 700;
  color: #fff;
  background: var(--card-name-bg);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 90%;
  line-height: 1.25;
}

/* Footer */
.vtr-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.vtr-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.vtr-footer-copyright {
  font-size: 0.75rem;
  opacity: 0.6;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  width: 100%;
  padding-top: 16px;
}

.vtr-footer-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.vtr-footer-active__dot {
  position: relative;
  display: inline-flex;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}

.vtr-footer-active__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.75;
  animation: vtr-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes vtr-ping {
  75%, 100% { transform: scale(3.5); opacity: 0; }
}

.vtr-footer-active strong {
  color: var(--text);
}

/* Popup */
.vitrin-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: stretch;
  justify-content: stretch;
}

.vitrin-popup.is-open {
  display: flex;
}

.vitrin-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.vitrin-popup__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: #111;
  display: flex;
  flex-direction: column;
}

.vitrin-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.vitrin-popup__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f5f5f5;
}

/* Responsive — mobilde de 4 kolon (referans) */
@media (max-width: 1024px) {
  .vtr-grid {
    gap: 12px;
    padding: 20px 0 24px;
  }
}

@media (max-width: 768px) {
  body.tema-3 .t3-header {
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding:
      calc(8px + env(safe-area-inset-top, 0px))
      max(12px, env(safe-area-inset-right, 0px))
      8px
      max(12px, env(safe-area-inset-left, 0px));
  }

  body.tema-3 .t3-brand a {
    text-align: center;
    letter-spacing: 0.22em;
    font-size: 0.62rem;
  }

  .vtr-wrap {
    padding: 0 10px;
  }

  .vtr-grid {
    gap: var(--grid-gap-mobile);
    padding: 12px 0 15px;
  }

  .vtr-card-content {
    justify-content: center;
  }

  .vtr-card-name {
    font-size: 0.5rem;
    padding: 3px 8px;
    max-width: 88%;
  }

  .vtr-page-index .vtr-footer {
    padding-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .vtr-grid {
    gap: 8px;
  }

  .vtr-card {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vtr-marquee-content { animation-duration: 120s; }
  .vtr-card { animation: none; }
}
