:root {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --accent-color: #3498db;
  --dark-color: #1a252f;
  --light-color: #ecf0f1;
  --text-color: #2c3e50;
  --text-light: #7f8c8d;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(44, 62, 80, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
body {
  background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
  color: var(--text-color);
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.container {
  max-width: 600px;
  width: 100%;
}

/* Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--glass-shadow);
  padding: 25px;
  margin-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Hint to browser to promote this element to its own compositor layer
     which reduces repaint/flicker when scrolling (fixes disappearance) */
  will-change: transform, box-shadow;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Profil */
.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--light-color);
  margin: 0 auto 15px;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.profile-name {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--dark-color);
  margin-bottom: 5px;
}
.profile-title {
  font-size: 18px;
  text-align: center;
  color: var(--accent-color);
  margin-bottom: 15px;
  font-weight: 500;
}
.profile-desc {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.6;
  font-size: 16px;
}

/* Başlık */
.section-header {
  display: flex;
  align-items: center;
  gap: 6px;                  /* tighter spacing */
  flex-wrap: nowrap;         /* prevent icon/title stacking on narrow screens */
  margin-bottom: 16px;
  color: var(--dark-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 6px;       /* slightly reduced to vertically center */
}
.section-header i {
  /* unified rounded-square icon box */
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  width: 40px;
  height: 40px;
  border-radius: 8px;        /* rounded square */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;                /* spacing is handled by gap */
  color: #fff;
  flex: 0 0 auto;
}
.section-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;                  /* remove default h3 margins which offset alignment */
  padding: 0;
  min-height: 40px;           /* match icon height */
  line-height: 40px;         /* vertically center text exactly */
  white-space: nowrap;        /* keep title on one line */
  overflow: hidden;
  text-overflow: ellipsis;   /* truncate long titles */
} 

/* İletişim satırları */
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--light-color);
  transition: all 0.3s ease;
  border-left: 4px solid var(--accent-color);
}
.contact-item:hover {
  background: #dfe6e9;
  transform: translateX(5px);
}

/* Sol ikon */
.contact-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 8px;       /* rounded square */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.contact-label {
  flex: 1;
  min-width: 0;
}
.contact-actions {
  display: flex;
  gap: 8px;
}

/* Map */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  height: 250px;
  margin-top: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--glass-border);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Sosyal ikonlar */
.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 10px 0 0 0;
}
.social-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;      /* rounded square */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-color);
  color: var(--dark-color);
  font-size: 22px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}
.social-icon:hover {
  transform: translateY(-5px);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Pazaryeri linki */
.link-item {
  display: block;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--light-color);
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  border-left: 4px solid var(--accent-color);
  font-weight: 500;
}
.link-item:hover {
  background: #dfe6e9;
  transform: translateX(5px);
}
.link-item i {
  margin-right: 10px;
  color: var(--accent-color);
}

/* Banka */
.bank-account {
  display: flex;
  align-items: center;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 10px;
  background: var(--light-color);
  border-left: 4px solid var(--accent-color);
  transition: all 0.3s ease;
}
.bank-account:hover {
  background: #dfe6e9;
  transform: translateX(5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.bank-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;      /* rounded square */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;       /* slightly tighter */
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  font-size: 20px;
}
.bank-details {
  flex: 1;
}
.bank-name {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 5px;
}
.bank-info {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

/* Ürünler */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.product-card {
  background: var(--light-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.product-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* İçerik alanını dikey esnek yap */
.product-details {
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Başlık: 1 satır + ellipsis + sabit satır yüksekliği */
.product-name {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.4em; /* kart hizası için tek satır yüksekliği */
}

/* Açıklama: 3 satır + ellipsis + sabit yükseklik */
.product-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.5;
  min-height: calc(1.5em * 3);
  max-height: calc(1.5em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  color: #27ae60;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tek ürün varsa tam genişlik */
.product-grid > .product-card:only-child {
  grid-column: 1 / -1;
}

/* Küçük ikon-only buton */
.btn-copy {
  padding: 2px 7px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid var(--accent-color);
  background: var(--light-color);
  color: var(--accent-color);
  transition: background 0.2s, color 0.2s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  height: 24px;
}
.btn-copy:hover {
  background: var(--accent-color);
  color: #fff;
}
.btn-copy i {
  background: none !important;
  width: auto;
  height: auto;
  margin: 0;
  color: inherit;
}

/* Detay butonu kartın en altına insin */
.product-card .product-details .btn-primary {
  margin-top: auto;
}

/* Büyük aksiyon butonları */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  border-radius: 10px;
  padding: 15px 25px;
  font-weight: 500;
  width: 100%;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .profile-img {
    width: 110px;
    height: 110px;
  }
  .profile-name {
    font-size: 24px;
  }
  .profile-title {
    font-size: 16px;
  }
  .map-container {
    height: 200px;
  }
  .section-header {
    flex-direction: row; /* keep icon and title side-by-side on mobile */
    align-items: center;
    text-align: left;
    gap: 8px; /* match desktop spacing */
  }
  .section-header i {
    margin-right: 8px;
  }
}

/* Profil avatar sargısı */
.avatar-wrap{
  --verify-color: #007BFF;      /* varsayılan (mavi) */
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 15px;
}

/* Mevcut .profile-img kurallarının üstüne gelebilir */
.avatar-wrap .profile-img{
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  /* Çerçeveyi tik rengiyle aynı yapıyoruz */
  border: 4px solid var(--verify-color);
  display: block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

/* Tik rozeti */
.verify-badge{
  position: absolute;
  right: -2px;                 /* kart/çerçeveye göre ayarlayabilirsin */
  top: -2px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--verify-color);
  display: grid; place-items: center;
  /* Logo/şerit arasındaki GRI AYRIM GÖLGESİ */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
  /* İstersen dış halka etkisi: */
  box-shadow: 0 0 0 3px #fff;  /* kartın üstünde temiz dursun */
  z-index: 2;
}

/* Renk varyantları (tik + çerçeve aynı renk) */
.verify--blue   { --verify-color:#007BFF; }
.verify--green  { --verify-color:#28A745; }
.verify--gold   { --verify-color:#FFD700; }

/* Küçük ekran için boyutu azalt */
@media (max-width:576px){
  .avatar-wrap{ width:110px; height:110px; }
  .verify-badge{ width:26px; height:26px; }
}

.verify--none {
  --verify-color: transparent; /* ama zaten border ve badge’i kapatıyoruz */
}

.verify--none .profile-img {
  border: none !important;      /* çerçeve tamamen gitsin */
  box-shadow: none !important;  /* gölge de kalksın */
}

.verify--none .verify-badge {
  display: none !important;     /* tik kaybolsun */
}

