/* =========================================
   SPYFALL - iOS DARK MODE GLASSMORPHISM CSS
   ========================================= */

/* Main Containers */
.spyfall-container {
  padding: 2dvh 4vw;
  display: flex;
  flex-direction: column;
  gap: 2.5dvh;
}

.screen-header {
  text-align: center;
  margin-bottom: 1dvh;
}

.screen-title {
  font-size: 3dvh;
  font-weight: 800;
  letter-spacing: var(--letter-spacing-tight);
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.screen-subtitle {
  font-size: 1.4dvh;
  color: var(--color-text-muted);
  margin-top: 0.5dvh;
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5dvh 4vw;
  box-shadow: var(--shadow-soft);
}

.section-title {
  font-size: 1.8dvh;
  font-weight: 700;
  margin-bottom: 1.5dvh;
  color: var(--color-accent);
}

/* Setup Form Styles */
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5dvh;
}

.setting-label {
  font-size: 1.6dvh;
  font-weight: 600;
}

.setting-input {
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: 0.8dvh 3vw;
  font-size: 1.6dvh;
  outline: none;
}

.setting-input:focus {
  border-color: var(--color-accent);
}

.input-group {
  display: flex;
  align-items: center;
  gap: 2vw;
  margin-bottom: 1dvh;
}

.input-prefix {
  font-size: 1.4dvh;
  font-weight: 700;
  color: var(--color-accent);
  width: 4vw;
}

.player-name-input {
  flex: 1;
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: 1dvh 3vw;
  font-size: 1.5dvh;
  outline: none;
}

/* Buttons */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #0A84FF 0%, #0056B3 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 1.8dvh 0;
  font-size: 1.8dvh;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.4);
  transition: transform 0.2s var(--ease-ios), opacity 0.2s;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  width: 100%;
  background: var(--color-surface-secondary);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.4dvh 0;
  font-size: 1.5dvh;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease-ios);
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* Pass & Play Flip Card */
.flip-card-wrapper {
  perspective: 1000px;
  margin: 3dvh 0;
  height: 32dvh;
}

.flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-ios);
  cursor: pointer;
}

.flip-card.flipped {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  padding: 2dvh 4vw;
  text-align: center;
}

.card-front {
  background: linear-gradient(135deg, rgba(28,28,30,0.9) 0%, rgba(44,44,46,0.9) 100%);
}

.card-back {
  background: linear-gradient(135deg, rgba(10,132,255,0.15) 0%, rgba(28,28,30,0.95) 100%);
  transform: rotateY(180deg);
}

.card-icon {
  font-size: 6dvh;
  margin-bottom: 1.5dvh;
}

.secret-title {
  font-size: 2.6dvh;
  font-weight: 800;
  margin-bottom: 1dvh;
}

.secret-subtitle {
  font-size: 1.6dvh;
  color: var(--color-text-muted);
}

/* Ingame Play Screen */
.timer-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 2dvh 0;
}

.timer-display {
  font-size: 5dvh;
  font-weight: 900;
  font-family: monospace;
  letter-spacing: 2px;
  color: var(--color-accent);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5dvh;
  margin-top: 1dvh;
  max-height: 45dvh;
  overflow-y: auto;
  padding-right: 1vw;
}

.location-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5dvh 2vw;
  display: flex;
  align-items: center;
  gap: 2vw;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.location-card:active {
  transform: scale(0.96);
}

.location-card.eliminated {
  opacity: 0.3;
  text-decoration: line-through;
  filter: grayscale(1);
}

.loc-icon {
  font-size: 2.5dvh;
}

.loc-name {
  font-size: 1.4dvh;
  font-weight: 600;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  width: 90%;
  max-width: 450px;
  max-height: 80vh;
  overflow-y: auto;
}

.custom-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-surface-secondary);
  border-radius: var(--radius-sm);
  padding: 1dvh 3vw;
  margin-top: 1dvh;
}

.delete-btn {
  background: #FF453A;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.4dvh 2vw;
  font-size: 1.2dvh;
  cursor: pointer;
}

.hidden {
  display: none !important;
}
