/* Preconnect for better performance */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* Performance: Font-display swap for faster text rendering */
@font-face {
  font-family: 'Playfair Display';
  font-display: swap;
}

:root {
  --pink: #e91e63;
  --pink2: #ff4081;
  --bg: #0e0e0e;
  --card: #1a1a1a;
  --text: #f5f5f5;
  --muted: #cfcfcf;
  --rose-gold: #e6b6a6;
  --rose-gold-dark: #d4a08a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 110px; /* Space for fixed header */
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #ffeef8 0%, #ffe0f0 100%);
  color: #333;
  min-height: 100vh;
  transition: padding-top 0.4s ease;
}

@media (max-width: 768px) {
  body {
    padding-top: 70px !important; /* Mobilde daha az boşluk */
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 65px !important; /* Çok küçük ekranlarda minimum boşluk */
  }
}

/* 🌟 Sticky Animated Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 238, 248, 0.98) 0%, rgba(255, 224, 240, 0.98) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(255, 105, 180, 0.2);
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 12px 30px;
  border-bottom: 2px solid rgba(255, 105, 180, 0.1);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 105, 180, 0.5), transparent);
  opacity: 0.5;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.header-logo {
  width: auto;
  height: 80px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 12px rgba(217, 70, 160, 0.3));
}

.header-text {
  text-align: left;
  transition: all 0.4s ease;
}

.header-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #d946a0;
  text-shadow: 0 2px 8px rgba(217, 70, 160, 0.3);
  letter-spacing: 1px;
  font-family: 'Playfair Display', 'Georgia', serif;
  transition: all 0.4s ease;
  line-height: 1.2;
}

.header-subtitle {
  margin: 3px 0 0 0;
  font-size: 0.75rem;
  color: #ff69b4;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
  transition: all 0.4s ease;
}

.header-link-admin {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #ff69b4 0%, #d946a0 100%);
  padding: 10px 20px;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid rgba(255, 105, 180, 0.3);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.header-link-admin span {
  margin-right: 5px;
}

.header-link-admin:hover {
  background: linear-gradient(135deg, #d946a0 0%, #ff69b4 100%);
  border-color: #ff69b4;
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
  transform: scale(1.05);
}

@media (min-width: 769px) {
  .header-link-admin:hover {
    transform: translateY(-50%) scale(1.05);
  }
}

/* 📜 Scrolled State - Smaller Header */
.site-header.scrolled {
  padding: 8px 30px;
}

.site-header.scrolled .header-logo {
  width: auto;
  height: 55px;
}

.site-header.scrolled .header-title {
  font-size: 1rem;
}

.site-header.scrolled .header-subtitle {
  font-size: 0.6rem;
  margin-top: 2px;
}

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
  .site-header {
    padding: 6px 10px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: auto;
  }

  .header-content {
    flex-direction: row;
    gap: 6px;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    min-width: 0; /* Text overflow için */
    padding: 0;
    margin: 0;
  }

  .header-logo {
    width: auto;
    height: 50px;
    flex-shrink: 0;
  }

  .header-text {
    min-width: 0; /* Text overflow için */
  }

  .header-title {
    font-size: 0.9rem;
    line-height: 1.1;
  }

  .header-subtitle {
    font-size: 0.55rem;
    letter-spacing: 0.5px;
    margin-top: 2px;
    line-height: 1.1;
  }

  .header-link-admin {
    position: static;
    transform: none;
    margin-top: 0;
    width: auto;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.7rem;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
  }

  .site-header.scrolled {
    padding: 6px 10px;
  }

  .site-header.scrolled .header-content {
    padding: 0;
    gap: 5px;
  }

  .site-header.scrolled .header-logo {
    width: auto;
    height: 40px;
  }

  .site-header.scrolled .header-title {
    font-size: 0.8rem;
  }

  .site-header.scrolled .header-subtitle {
    font-size: 0.5rem;
  }

  .site-header.scrolled .header-link-admin {
    font-size: 0.65rem;
    padding: 6px 10px;
    margin-top: 0;
  }
}

/* 📱 Çok küçük ekranlar için ekstra düzenleme */
@media (max-width: 480px) {
  .site-header {
    padding: 5px 8px;
    gap: 8px;
    min-height: auto;
  }

  .header-content {
    gap: 4px;
  }

  .header-logo {
    height: 45px;
  }

  .header-title {
    font-size: 0.8rem;
  }

  .header-subtitle {
    font-size: 0.5rem;
  }

  .header-link-admin {
    font-size: 0.65rem;
    padding: 6px 10px;
  }

  .site-header.scrolled {
    padding: 5px 8px;
  }

  .site-header.scrolled .header-logo {
    height: 35px;
  }

  .site-header.scrolled .header-title {
    font-size: 0.75rem;
  }

  .site-header.scrolled .header-subtitle {
    font-size: 0.45rem;
  }

  .site-header.scrolled .header-link-admin {
    font-size: 0.6rem;
    padding: 5px 8px;
  }
}

.main-content {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding-top: 0;
}


.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

@media (max-width: 768px) {
  .main-content {
    margin-top: 0;
    padding-top: 0;
  }

  .container {
    margin-top: 10px;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .container {
    margin-top: 5px;
  }
}


.card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(233, 30, 99, 0.15);
  transition: all .3s ease;
  cursor: pointer;
  text-decoration: none !important;
  color: #333;
  border: none;
}

.card a {
  text-decoration: none !important;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(244, 143, 177, 0.3);
}
.card img {
  width: 100%;
  height: 280px; 
  object-fit: cover;
  display: block;
}


.card-content {
  padding: 14px 10px 18px 10px;
  text-align: center !important;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card-content h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #ff80ab;
  display: block;
  width: 100%;
}


.info-badges {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 0 8px;
  width: 100%;
  box-sizing: border-box;
}

.info-tag {
  background: linear-gradient(135deg, #fff5f8, #ffe4f0);
  color: #f06292;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 15px;
  border: 1px solid rgba(244, 143, 177, 0.3);
  text-align: center;
  flex: 1 1 30%; 
  min-width: 90px;
  white-space: normal; 
  line-height: 1.3;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.info-tag:hover {
  background: linear-gradient(135deg, #ffe4f0, #ffd9ea);
  border-color: #f48fb1;
  transform: translateY(-2px);
}


.footer {
  padding: 25px;
  text-align: center;
  color: #f06292;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  margin-top: 40px;
  font-weight: 500;
}


.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffffff12;
  color: #ffd6e5;
  font-size: .75rem;
}


.main-wrap {
  max-width: 920px;
  margin: 34px auto;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 64, 129, .2);
  overflow: hidden;
  border: 1px solid #ffffff12;
}
.hero {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.content {
  padding: 26px;
}
h1 {
  color: #ff80ab;
  margin: 0 0 10px;
  font-size: 1.9rem;
}
p {
  line-height: 1.65;
  color: #d9d9d9;
  font-size: 1rem;
  margin: 0 0 10px;
}


.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 20px;
  text-align: center;
}
.actions .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 220px;
  padding: 12px 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  transition: .25s;
}
.btn-wa {
  background: #25d366;
  color: #fff;
}
.btn-wa:hover {
  filter: brightness(.95);
}
.btn-back {
  background: #ffffff14;
  color: #ff80ab;
}
.btn-back:hover {
  background: #ffffff24;
}


.gallery4 {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 10px 0;
  background: #151515;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(255, 64, 129, 0.15);
  border: 1px solid #ff408133;
}
.gallery4 img {
  width: 25%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #ffffff12;
  background: #111;
}
.gallery4 img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 64, 129, 0.6);
}


@media (max-width: 768px) {
  header {
    padding: 8px 10px;
    flex-direction: column;
    gap: 8px;
  }
  
  .header-left {
    flex-direction: column;
    gap: 5px;
    width: 100%;
    text-align: center;
  }
  
  header h1 {
    font-size: 0.95rem;
    padding: 4px 8px;
  }
  
  header p {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
  
  header a {
    padding: 5px 12px;
    font-size: 0.75rem;
    width: 100%;
    text-align: center;
  }
  
  .card img {
    height: 220px;
  }

  .info-tag {
    flex: 1 1 45%; 
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .gallery4 {
    flex-wrap: wrap;
  }
  .gallery4 img {
    width: 48%;
    height: 200px;
  }

  .actions {
    flex-direction: column;
  }
  .actions .btn {
    width: 80%;
  }
}

.name-box {
  background: linear-gradient(135deg, #e91e63, #d946a0);
  color: #ffffff !important;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 12px;
  margin: 12px auto 10px auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 90%;
  max-width: 100%;
  display: block !important;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none !important;
  box-sizing: border-box;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.name-box:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(244, 143, 177, 0.6);
}



@media (max-width: 768px) {
  .name-box {
    font-size: 0.9rem;
    padding: 10px 12px;
    width: 92%;
    margin: 10px auto 8px auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
  
  .card-content {
    align-items: center;
  }
}
