/* Okey İsteka & Taş Görsel Stilleri */

/* Ahşap İsteka Kutusu */
.isteka-container {
  background: linear-gradient(180deg, #5c3519 0%, #3e220e 45%, #291508 100%);
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.15), 0 10px 25px rgba(0, 0, 0, 0.6);
}

.isteka-rack {
  position: relative;
}

.isteka-shelf {
  position: relative;
}

.shelf-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(251, 191, 36, 0.7);
  margin-bottom: 4px;
}

/* Okey Taşı 3D Görünümü (Gerçekçi Plastik / Fildişi) */
.okey-tile {
  width: 48px;
  height: 68px;
  background: linear-gradient(145deg, #ffffff 0%, #f4eee2 60%, #e2d7c5 100%);
  border-radius: 8px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.4),
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    inset 0 -2px 3px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid #d4c5b0;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .okey-tile {
    width: 54px;
    height: 76px;
  }
}

.okey-tile:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 
    0 8px 12px -2px rgba(0, 0, 0, 0.5),
    0 4px 6px -2px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.okey-tile:active {
  transform: translateY(0) scale(0.98);
}

/* Taş Rakamları ve Renkleri */
.okey-tile .tile-number {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  font-family: 'Arial Rounded MT Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-shadow: 0 1px 1px rgba(0,0,0,0.12);
}

@media (min-width: 640px) {
  .okey-tile .tile-number {
    font-size: 30px;
  }
}

/* Renk Sınıfları */
.tile-color-red .tile-number {
  color: #dc2626; /* Canlı Kırmızı */
}

.tile-color-blue .tile-number {
  color: #2563eb; /* Canlı Mavi */
}

.tile-color-black .tile-number {
  color: #1e293b; /* Koyu Siyah */
}

.tile-color-yellow .tile-number {
  color: #d97706; /* Canlı Sarı / Turuncu */
}

.tile-color-joker {
  background: linear-gradient(145deg, #faf5ff 0%, #ede9fe 60%, #ddd6fe 100%);
  border: 1.5px solid #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.tile-color-joker .tile-number {
  color: #7e22ce;
  font-size: 20px;
}

.tile-joker-badge {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  color: #a855f7;
  letter-spacing: 0.05em;
  margin-top: 1px;
}

/* Taş üzerindeki küçük renk noktası veya sahte okey ikonu */
.okey-tile .tile-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 4px;
}

.tile-color-red .tile-dot { background-color: #dc2626; }
.tile-color-blue .tile-dot { background-color: #2563eb; }
.tile-color-black .tile-dot { background-color: #1e293b; }
.tile-color-yellow .tile-dot { background-color: #d97706; }
.tile-color-joker .tile-dot { background-color: #9333ea; }

/* Taş silme/hızlı işlem butonu */
.tile-remove-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  font-size: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.okey-tile:hover .tile-remove-badge {
  display: flex;
}

/* Per Grubu Kartı */
.meld-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}

.meld-card:hover {
  border-color: rgba(34, 197, 94, 0.5);
}

/* Animasyonlar */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.25s ease forwards;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.animate-scale-in {
  animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
