/**
 * Tile Inspector Modal Styles — Stardew Valley Theme
 */

.tile-inspector-modal {
  position: fixed;
  z-index: 1000;
  min-width: 200px;
  max-width: 260px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(92,58,30,0.025) 0px,
      transparent 2px,
      rgba(92,58,30,0.015) 4px
    ),
    linear-gradient(180deg, #FFF8F0 0%, #FDF4E3 100%);
  border: 4px solid #6B4226;
  border-radius: 8px;
  box-shadow: 
    4px 4px 0 rgba(0,0,0,0.2),
    inset 0 2px 0 rgba(255,255,255,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.1);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #3B2412;
  animation: tileModalPop 0.15s ease-out;
  pointer-events: auto;
}

@keyframes tileModalPop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tile-inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: linear-gradient(180deg, #8B5E33 0%, #6B4226 100%);
  border-bottom: 3px solid #3B1F0E;
  border-radius: 4px 4px 0 0;
  margin: -1px -1px 0 -1px;
}

.tile-coords {
  color: #FFD700;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

.tile-inspector-close {
  background: #D94A4A;
  border: 2px solid #A03030;
  border-radius: 4px;
  color: white;
  font-family: inherit;
  font-size: 8px;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.1s;
}

.tile-inspector-close:hover {
  background: #E05050;
  transform: scale(1.1);
}

.tile-inspector-body {
  padding: 10px;
}

.tile-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px dashed #E8D4AC;
}

.tile-info-row:last-child {
  border-bottom: none;
}

.tile-info-label {
  color: #8B6914;
  font-size: 7px;
}

.tile-info-value {
  color: #3B2412;
  font-size: 8px;
  text-align: right;
}

.tile-info-value.owner-name {
  color: #4A90D9;
  font-weight: bold;
}

.tile-info-value.owner-name:hover {
  color: #6AB0F9;
}

.tile-info-value.unclaimed {
  color: #888;
  font-style: italic;
}

.tile-info-value.structure {
  color: #5EA030;
}

.tile-info-value.resource {
  color: #D98A2B;
}

.tile-info-value.amount {
  color: #DAA520;
  font-weight: bold;
}

.tile-info-value.defense-value {
  color: #4A90D9;
}

.owner-row {
  background: rgba(74, 144, 217, 0.1);
  margin: 2px -6px;
  padding: 4px 6px;
  border-radius: 4px;
}

/* Night mode adjustments */
body.night-mode .tile-inspector-modal {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(30,20,10,0.1) 0px,
      transparent 2px
    ),
    linear-gradient(180deg, #2A2418 0%, #1E1810 100%);
  border-color: #4A3020;
  color: #E8D4AC;
}

body.night-mode .tile-inspector-header {
  background: linear-gradient(180deg, #3A2818 0%, #2A1E10 100%);
  border-color: #1A0E08;
}

body.night-mode .tile-info-label {
  color: #A08060;
}

body.night-mode .tile-info-value {
  color: #E8D4AC;
}

body.night-mode .tile-info-row {
  border-color: #3A2818;
}
