/* ===== GENEL ===== */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle, #2b2b2b, #000);
  text-align: center;
  color: #222;
}

/* ===== BAŞLIK ===== */
h1 {
  font-family: 'Cinzel', serif;
  color: #f2c97d;
  letter-spacing: 3px;
  margin: 30px 0;
}

/* ===== KART ===== */
.card {
  background: #fff;
  max-width: 900px;
  margin: auto;
  border-radius: 14px;
  padding: 22px;
}

/* ===== TABLO ===== */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: center;
  padding: 14px 10px;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
  font-size: 14px;
}

td {
  padding: 16px 10px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

/* ===== ÜRÜN AÇIKLAMASI ===== */
td span {
  font-size: 12px;
  color: #777;
}

/* ===== FİYAT ===== */
.price {
  font-size: 20px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}


/* alış / satış etiketi */
.label {
  font-size: 11px;
  letter-spacing: 1px;
  color: #999;
  margin-top: 4px;
}

/* ===== CANLI RENK ===== */
.price-up {
  color: #1db954;
  animation: flashGreen 0.6s ease;
}

.price-down {
  color: #ff3b3b;
  animation: flashRed 0.6s ease;
}

@keyframes flashGreen {
  0% { background: rgba(29, 185, 84, 0.25); }
  100% { background: transparent; }
}

@keyframes flashRed {
  0% { background: rgba(255, 59, 59, 0.25); }
  100% { background: transparent; }
}

/* ===== ALT BİLGİ ===== */
.update {
  margin-top: 16px;
  font-size: 13px;
  color: #666;
}
/* TÜM FİYAT BLOĞUNU ALTIN ÇERÇEVEYE AL */
.card {
  position: relative;
}

/* ALTIN ÇERÇEVE */
.card::before {
  content: "";
  position: absolute;
  inset: 0; /* üst-alt-sağ-sol = 0 */
  border: 3px solid rgba(242, 201, 125, 0.95);
  border-radius: 14px;
  pointer-events: none;
  box-sizing: border-box;
}

/* İÇERİK ÇERÇEVEYE YAPIŞMASIN */
.card {
  padding: 22px;
}
/* ÜRÜN → ALIŞ kalın altın ayırıcı */
th:nth-child(2),
td:nth-child(2) {
  border-left: 3px solid rgba(242, 201, 125, 0.9);
}

/* ALIŞ → SATIŞ ince ayırıcı */
th:nth-child(3),
td:nth-child(3) {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}
#fullscreenBtn {
  background: transparent;
  border: 1px solid rgba(242, 201, 125, 0.8);
  color: #f2c97d;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  margin-bottom: 10px;
}

#fullscreenBtn:hover {
  background: rgba(242, 201, 125, 0.15);
}
/* VİTRİN MODU */
body.vitrin h1 {
  font-size: 36px;
}

body.vitrin .price {
  font-size: 26px;
}

body.vitrin table {
  font-size: 18px;
}

body.vitrin #fullscreenBtn {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 999;
}
@media (max-width: 768px) {
  h1 {
    font-size: 22px;
  }

  .price {
    font-size: 16px;
  }

  th, td {
    padding: 10px 6px;
    font-size: 13px;
  }

  #fullscreenBtn {
    font-size: 11px;
    padding: 6px 12px;
  }
}
.update {
  margin-top: 16px;
  font-size: 13px;
  color: #666;
  display: flex;
  justify-content: flex-end; /* sağa yasla */
  align-items: center;
  gap: 6px;
}

.update .divider {
  opacity: 0.6;
}

/* Saat biraz daha belirgin */
#clock {
  font-weight: 600;
  color: #444;
}

/* Vitrin modunda biraz büyüsün */
body.vitrin #clock {
  font-size: 15px;
}
/* 💓 CANLI NABIZ */
td.pulse-up {
  background-color: rgba(29,185,84,0.08); /* 🔥 EKLE */
  animation: cellGreen 1.5s ease-in-out;
}

td.pulse-down {
  background-color: rgba(255,59,59,0.08); /* 🔥 EKLE */
  animation: cellRed 1.5s ease-in-out;
}

@keyframes cellGreen {
  0%   { background-color: rgba(29,185,84,0.08); }
  50%  { background-color: rgba(29,185,84,0.18); }
  100% { background-color: rgba(29,185,84,0.08); }
}

@keyframes cellRed {
  0%   { background-color: rgba(255,59,59,0.08); }
  50%  { background-color: rgba(255,59,59,0.18); }
  100% { background-color: rgba(255,59,59,0.08); }
}
/* LOGO ALTIN ŞERİT ÇERÇEVE */

/* Logo çerçevenin içinde doğal dursun */
.site-logo {
  display: block;
  max-width: 260px;
  height: auto;
}

/* Vitrin modunda çerçeve + logo büyüsün */
.logo-frame {
  display: inline-flex;
  padding: 0px 4px;
  border: 3px solid rgba(242, 201, 125, 0.95);
  border-radius: 10px;
  background: #000;
  margin: 20px auto 8px; /* 🔥 altta biraz nefes */
  
}

body.vitrin .site-logo {
  max-width: 360px;
}


.site-logo {
  max-width: 300px;
  display: block;
  margin: 0 auto;
}
#fullscreenBtn {
  display: block;
  margin: 12px auto 16px; /* 🔥 ORTALAR */
}
.address {
  margin-top: 18px;
  padding-top: 12px;
  padding-bottom: 16px;   /* 👈 BUNU EKLE */
  border-top: 1px solid rgba(242, 201, 125, 0.55);
  font-size: 13px;
  color: #c9a24d;
  text-align: center;
  letter-spacing: 0.4px;
}


.address strong {
  color: #f2c97d;
  font-weight: 700;
}

.address span {
  color: #d8b86a;
  font-weight: 500;
}

/* vitrin modunda biraz daha belirgin */
body.vitrin .address {
  font-size: 14px;
}
