/* BeatTag Web - Cyber Glass & Liquid Obsidian Mobile Styles */
:root {
  --bg-deep: #07090e;
  --panel-bg: rgba(15, 23, 42, 0.75);
  --panel-border: rgba(0, 245, 255, 0.22);
  --card-bg: rgba(22, 32, 54, 0.65);
  --accent-cyan: #00f5ff;
  --accent-cyan-glow: rgba(0, 245, 255, 0.4);
  --accent-rose: #f43f5e;
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --input-bg: rgba(11, 17, 30, 0.85);
  --input-border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 245, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(244, 63, 94, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  padding-top: env(safe-area-inset-top, 16px);
  padding-bottom: env(safe-area-inset-bottom, 24px);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* App Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00f5ff 0%, #0088ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.45);
}

.logo-badge svg {
  width: 20px;
  height: 20px;
  fill: #090d16;
}

.logo-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff 0%, #00f5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.version-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 12px;
  background: rgba(0, 245, 255, 0.15);
  color: #00f5ff;
  border: 1px solid rgba(0, 245, 255, 0.3);
}

/* Main Container */
.main-content {
  flex: 1;
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Glass Card */
.glass-card {
  background: var(--panel-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

/* Dropzone / Upload Area */
.upload-dropzone {
  border: 2px dashed rgba(0, 245, 255, 0.35);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(0, 245, 255, 0.03);
  transition: all 0.25s ease;
}

.upload-dropzone:active, .upload-dropzone.dragover {
  background: rgba(0, 245, 255, 0.12);
  border-color: #00f5ff;
  transform: scale(0.99);
}

.dropzone-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(0, 245, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f5ff;
}

.dropzone-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dropzone-hint {
  font-size: 12px;
  color: var(--text-dim);
}

/* Cover & Media Box */
.cover-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cover-box {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
  font-size: 11px;
  text-align: center;
}

.cover-box:hover .cover-overlay {
  opacity: 1;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.cover-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cover-meta-actions {
  display: flex;
  gap: 8px;
}

/* Fields Grid */
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group.full-width {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field-input {
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.field-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.25);
}

/* Action Buttons */
.btn-primary {
  background: linear-gradient(135deg, #00f5ff 0%, #00b4d8 100%);
  color: #07090e;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 6px 20px rgba(0, 245, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(0, 245, 255, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.15);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 20px) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid var(--accent-cyan);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.4);
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 100;
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
}


/* Player & Waveform */
.player-container {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(0, 245, 255, 0.28);
  border-radius: 18px;
  padding: 14px 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-play-round {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f5ff 0%, #00b4d8 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #07090e;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.45);
  flex-shrink: 0;
  transition: transform 0.15s;
}

.btn-play-round:active {
  transform: scale(0.92);
}

.waveform-canvas {
  width: 100%;
  height: 52px;
  display: block;
  cursor: pointer;
  touch-action: none;
}

.player-timecode {
  font-family: 'Cascadia Code', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* Analysis Badges */
.analysis-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.badges-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-tag {
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: #00f5ff;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Cascadia Code', monospace;
}

.btn-apply-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-apply-badge:active {
  background: rgba(0, 245, 255, 0.2);
}

/* Header Navigation Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.btn-nav:hover, .btn-nav:active {
  background: rgba(0, 245, 255, 0.12);
  border-color: rgba(0, 245, 255, 0.35);
  color: #00f5ff;
}

/* Modals System (Cyber Glass) */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 11, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(14, 18, 27, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 245, 255, 0.08);
  border-radius: 22px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-close-modal:hover, .btn-close-modal:active {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
  color: #f43f5e;
}

/* Feedback Types */
.feedback-types {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.btn-type-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 6px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-type-tab.active {
  background: rgba(0, 245, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.22);
}

.feedback-textarea {
  width: 100%;
  height: 120px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.feedback-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.2);
}

.feedback-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 12px;
  cursor: pointer;
  user-select: none;
}

.feedback-checkbox-row input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  margin-top: 20px;
}

/* About Screen Highlights */
.about-hero {
  text-align: center;
  margin-bottom: 20px;
}

.about-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.about-feature-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 245, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.about-feature-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.about-feature-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
}

.about-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.about-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.about-link-btn:hover, .about-link-btn:active {
  background: rgba(0, 245, 255, 0.15);
  border-color: rgba(0, 245, 255, 0.4);
  color: var(--accent-cyan);
}

