/**
 * Inn Modal Styles
 */

/* Modal container */
.inn-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inn-modal.hidden {
  display: none;
}

.inn-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.inn-modal-container {
  position: relative;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 169, 42, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.inn-modal-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(212, 169, 42, 0.2) 0%, rgba(180, 130, 30, 0.1) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.inn-name {
  margin: 0 0 4px 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.inn-description {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.inn-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.inn-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Body */
.inn-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* User info */
.inn-user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-size: 0.85rem;
}

.inn-user-points {
  color: #fbbf24;
  font-weight: 600;
}

.inn-midnight-note {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* Current stay banner */
.inn-current-stay {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
}

.inn-current-stay-title {
  color: #22c55e;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 6px 0;
}

.inn-current-stay-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0 0 10px 0;
}

.inn-checkout-btn {
  padding: 6px 16px;
  border: 1px solid rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.inn-checkout-btn:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* Room cards */
.inn-rooms-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inn-room-card-player {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  transition: all 0.2s;
}

.inn-room-card-player:hover {
  border-color: rgba(212, 169, 42, 0.3);
  background: rgba(0, 0, 0, 0.4);
}

.inn-room-card-player.current-room {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.05);
}

.inn-room-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.inn-room-name {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
}

.inn-room-cost {
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.inn-room-cost.free {
  color: #22c55e;
}

.inn-room-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.inn-room-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.inn-effect-tag {
  padding: 3px 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #a5b4fc;
}

.inn-checkin-btn {
  padding: 8px 20px;
  border: none;
  background: linear-gradient(135deg, #d4a92a, #b8860b);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.inn-checkin-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.inn-checkin-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* Loading & messages */
.inn-loading {
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.5);
}

.inn-message {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-top: 4px;
}

.inn-message.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.inn-message.error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Responsive */
@media (max-width: 600px) {
  .inn-modal-container {
    width: 95%;
    max-height: 95vh;
  }

  .inn-modal-header {
    padding: 16px;
  }

  .inn-modal-body {
    padding: 16px;
  }
}
