/* ============================================
   PRENSES TOPTAN — Ana Sayfa Styles
   Mobile-first, dark premium theme
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  background: #0e0515;
  color: #ffffff;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================
   HEADER
   ============================================ */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14, 5, 21, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-inner.header-center {
  justify-content: center;
}

.menu-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.logo-main {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fff 0%, #d4a8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.header-cta {
  padding: 8px 18px;
  background: linear-gradient(135deg, #e91e8c, #ff2d7a);
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233, 30, 140, 0.45);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 90px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(
    175deg,
    #1a0a2e 0%,
    #16082a 15%,
    #0e0515 40%,
    #120820 70%,
    #1a0a2e 100%
  );
  overflow: hidden;
}

/* Background pattern / glow */
.hero-bg-pattern {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(180, 80, 220, 0.12) 0%,
    rgba(120, 40, 180, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 420px;
}

/* ============================================
   BRAND LOGO
   ============================================ */
.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Crown Icon */
.crown-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  animation: crownFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(240, 194, 127, 0.4));
}

@keyframes crownFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(42px, 12vw, 60px);
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #e8c8ff 30%,
    #ffffff 60%,
    #d4a8ff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(180, 120, 255, 0.15));
}

.brand-tagline {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 4.5vw, 22px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  padding: 20px 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.divider.visible {
  opacity: 1;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(180, 120, 255, 0.25) 50%,
    transparent 100%
  );
}

.divider-icon {
  color: rgba(180, 120, 255, 0.4);
  display: grid;
  place-items: center;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(15deg); }
}

/* ============================================
   LINKS CONTAINER
   ============================================ */
.links-container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
}

.link-row {
  display: flex;
  gap: 12px;
}

/* ============================================
   LINK BUTTONS
   ============================================ */
.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 14px;
  color: #1a1a2e;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.1);

  /* Animation entrance */
  opacity: 0;
  transform: translateY(16px);
}

.link-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.link-btn.full-width {
  width: 100%;
}

.link-btn.half {
  flex: 1;
  min-width: 0;
}

.link-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.link-btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

/* Icon styles */
.link-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #555;
  transition: all 0.3s ease;
}

.link-icon.wa-icon {
  color: #25d366;
}

.link-icon.ig-icon {
  color: #e1306c;
}

.link-icon.map-icon {
  color: #4285f4;
}

.link-text {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  text-align: center;
  line-height: 1.25;
}

/* Ana etiket + alt etiket (kişi adı) */
.link-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.link-main {
  font-weight: 600;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.link-sub {
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: #8a8a96;
}

.link-icon.tg-icon {
  color: #229ed9;
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(180, 120, 255, 0.2);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
  width: 200px;
  height: 200px;
  margin-left: -100px;
  margin-top: -100px;
}

@keyframes rippleAnim {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* ============================================
   CTA BUTTON
   ============================================ */
.cta-container {
  width: 100%;
  max-width: 420px;
  z-index: 1;
  padding-top: 8px;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #00d4aa, #00c9b7, #00bfa5);
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);

  /* Animation */
  opacity: 0;
  transform: translateY(16px);
}

.cta-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 170, 0.4);
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ============================================
   STORE MAP
   ============================================ */
.map-container {
  width: 100%;
  max-width: 420px;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);

  opacity: 0;
  transform: translateY(16px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

/* ============================================
   ADDRESS FOOTER
   ============================================ */
.address-footer {
  margin-top: 30px;
  text-align: center;
  z-index: 1;

  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
}

.address-footer.visible {
  opacity: 1;
  transform: translateY(0);
}

.address-footer p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ============================================
   RESPONSIVE — Tablet & Desktop
   ============================================ */

/* Small phones (< 360px) */
@media (max-width: 359px) {
  .hero {
    padding: 80px 14px 30px;
  }

  .link-btn {
    padding: 14px 14px;
    font-size: 13px;
  }

  .link-row {
    gap: 8px;
  }

  .brand-name {
    font-size: 36px;
  }

  .link-icon {
    display: none;
  }
}

/* Medium phones (360-414px) */
@media (min-width: 360px) and (max-width: 414px) {
  .link-btn {
    padding: 15px 16px;
    font-size: 13.5px;
  }
}

/* Large phones & small tablets */
@media (min-width: 415px) and (max-width: 768px) {
  .hero {
    padding: 100px 24px 50px;
  }
}

/* Tablet & Desktop */
@media (min-width: 769px) {
  .hero {
    padding: 120px 24px 60px;
  }

  .link-btn {
    padding: 18px 24px;
    font-size: 15.5px;
    border-radius: 16px;
  }

  .link-btn:hover {
    transform: translateY(-3px) scale(1.02);
  }

  .cta-btn {
    padding: 20px 28px;
    font-size: 16px;
    border-radius: 16px;
  }

  .brand-name {
    font-size: 72px;
  }

  .brand-tagline {
    font-size: 24px;
  }

  .map-container iframe {
    height: 380px;
  }
}

/* ============================================
   ANIMATIONS — Pulse glow for WhatsApp icons
   ============================================ */
@keyframes waGlow {
  0%, 100% { filter: drop-shadow(0 0 0px transparent); }
  50% { filter: drop-shadow(0 0 6px rgba(37, 211, 102, 0.4)); }
}

.wa-icon svg {
  animation: waGlow 2.5s ease-in-out infinite;
}

/* Instagram icon gradient effect on hover */
.link-btn:hover .ig-icon {
  color: #c13584;
}

/* Map icon pulse on hover */
.link-btn:hover .map-icon {
  color: #1a73e8;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(180, 120, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(180, 120, 255, 0.4);
}

/* ============================================
   SAFE AREA (notch phones)
   ============================================ */
@supports (padding-top: env(safe-area-inset-top)) {
  #main-header {
    padding-top: env(safe-area-inset-top);
  }
  
  .hero {
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
