/* css/cards.css - Hand Drawer, Card Displays, and Modals */

/* Hand Drawer at the bottom */
.hand-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 15, 18, 0.95);
  backdrop-filter: blur(14px);
  border-top: 2px solid var(--border-gold);
  padding: 8px 20px;
  z-index: 200;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hand-drawer.collapsed {
  transform: translateY(calc(100% - 40px));
}

.hand-toggle-btn {
  background: #1f2430;
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.hand-toggle-btn:hover {
  border-color: var(--gold-light);
  background: #2b3345;
}

.hand-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hand-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cards-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 4px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) #111;
}

.cards-carousel::-webkit-scrollbar {
  height: 6px;
}
.cards-carousel::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 3px;
}

/* Card Miniature in Hand */
.game-card-mini {
  flex: 0 0 110px;
  height: 155px;
  border-radius: 8px;
  border: 1.5px solid var(--border-gold);
  background: #11141a;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-card-mini:hover {
  transform: translateY(-12px) scale(1.05);
  border-color: var(--gold-light);
  box-shadow: 0 8px 20px var(--gold-glow);
  z-index: 10;
}

.game-card-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-mini-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  font-size: 0.7rem;
  color: var(--gold-light);
  text-align: center;
  padding: 3px 0;
  font-family: var(--font-heading);
}

/* Card Inspector Modal */
.card-inspector-content {
  text-align: center;
}

.card-inspect-img-wrapper {
  max-width: 260px;
  margin: 0 auto 16px;
  border-radius: 12px;
  border: 2px solid var(--gold-primary);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.card-inspect-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.card-inspect-title {
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.card-inspect-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-inspect-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Trap Card Reveal Modal */
.trap-reveal-box {
  text-align: center;
}

.trap-banner {
  color: #ff4d4d;
  font-size: 1.5rem;
  margin-bottom: 12px;
  text-shadow: 0 0 12px var(--crimson-glow);
}

.trap-card-img-wrapper {
  max-width: 280px;
  margin: 0 auto 16px;
  border-radius: 12px;
  border: 3px solid var(--crimson-trap);
  box-shadow: 0 0 30px var(--crimson-glow);
  animation: pulseTrap 1.5s infinite alternate;
}

@keyframes pulseTrap {
  from { box-shadow: 0 0 15px var(--crimson-glow); }
  to { box-shadow: 0 0 35px rgba(255, 77, 77, 0.9); }
}

.trap-card-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Boss Fight Chamber Modal */
.boss-encounter-box {
  text-align: center;
}

.boss-title {
  color: var(--gold-light);
  font-size: 1.8rem;
  margin-bottom: 8px;
  text-shadow: 0 0 20px var(--gold-glow);
}

.boss-img-wrapper {
  max-width: 300px;
  margin: 0 auto 16px;
  border-radius: 14px;
  border: 3px solid var(--gold-light);
  box-shadow: 0 0 30px var(--gold-glow);
}

.boss-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.bounty-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00e676;
  margin: 10px 0 16px;
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

/* Mobile Media Queries */
@media (max-width: 600px) {
  .hand-drawer {
    padding: 6px 10px;
  }
  .game-card-mini {
    flex: 0 0 82px;
    height: 116px;
  }
  .card-inspect-img-wrapper, .trap-card-img-wrapper, .boss-img-wrapper {
    max-width: 200px;
  }
}
