/* EMDR Sound — app-specific styles (theme tokens from css/theme.css) */

.app {
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.logo-icon {
  font-size: 1.75rem;
  color: var(--color-teal);
  animation: gentle-spin 12s linear infinite;
}

@keyframes gentle-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.visualizer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 1.5rem;
  margin-bottom: 0;
}

.ear {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  transition: opacity 0.3s ease;
  opacity: 0.4;
}

.ear.active {
  opacity: 1;
}

.ear-left.active .ear-pulse {
  background: var(--color-teal);
  box-shadow: 0 0 24px rgba(107, 174, 166, 0.45);
}

.ear-right.active .ear-pulse {
  background: var(--color-secondary);
  box-shadow: 0 0 24px rgba(232, 117, 42, 0.35);
}

.ear-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.ear-pulse {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-surface-raised);
  border: 2px solid var(--color-border);
  transition: all 0.15s ease;
}

.ear.active .ear-pulse {
  transform: scale(1.12);
}

.center-display {
  text-align: center;
  min-width: 100px;
}

.bpm-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.bpm-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
}

.bpm-unit {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.session-timer,
.status {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-play {
  width: 100%;
}

.btn-play.playing {
  background: var(--color-surface-raised);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
}

.control-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.control-value {
  color: var(--color-primary);
  font-weight: 600;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--color-surface-hover);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

select:hover,
select:focus {
  border-color: var(--color-teal);
  outline: none;
}

.info {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

details summary {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}

details summary::before {
  content: '›';
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

details li {
  margin-bottom: 0.4rem;
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  font-style: italic;
  margin-top: 1rem;
}

@media (max-width: 400px) {
  .visualizer {
    padding: 1.5rem 1rem;
  }

  .ear-pulse {
    width: 44px;
    height: 44px;
  }

  .bpm-value {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-icon {
    animation: none;
  }
}
