/* El Cajón — Theatrical Theme */

:root {
  --curtain-red: #8B0000;
  --gold: #D4AF37;
  --cream: #FDF5E6;
  --ink: #1a1a2e;
  --shadow: rgba(0, 0, 0, 0.3);
  --microsoft-gray: #2f2f2f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background: linear-gradient(135deg, var(--ink) 0%, #16213e 100%);
  min-height: 100vh;
  color: var(--cream);
  line-height: 1.6;
}

.stage {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.proscenium {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 2rem;
}

.title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  text-shadow: 2px 2px 4px var(--shadow);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-style: italic;
  opacity: 0.8;
  font-size: 1.1rem;
}

/* Main Content */
.performance {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Scene Cards */
.scene {
  background: linear-gradient(145deg, rgba(139, 0, 0, 0.2), rgba(139, 0, 0, 0.1));
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px var(--shadow);
}

.scene h2 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* User Bar */
.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  font-size: 1.5rem;
}

#user-name {
  font-weight: 600;
  color: var(--cream);
}

.btn-logout {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.btn-logout:hover {
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--curtain-red), #6B0000);
  color: var(--cream);
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

.btn-microsoft {
  background: var(--microsoft-gray);
  color: white;
  border: 1px solid #5e5e5e;
  padding: 0.75rem 1.5rem;
}

.btn-microsoft:hover {
  background: #3d3d3d;
  transform: translateY(-1px);
}

.microsoft-logo {
  flex-shrink: 0;
}

.btn-full {
  width: 100%;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--gold);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(212, 175, 55, 0.05);
}

.upload-zone:hover,
.upload-zone.dragover {
  background: rgba(212, 175, 55, 0.15);
  border-style: solid;
}

.upload-zone .emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.upload-zone p {
  margin-bottom: 0.5rem;
}

/* File List */
.file-list {
  list-style: none;
  margin-top: 1.5rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.file-item .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item .status {
  margin-left: 1rem;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Empty State */
.files-empty {
  text-align: center;
  padding: 2rem;
  opacity: 0.7;
}

/* Loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading p {
  margin-top: 1rem;
  font-style: italic;
}

/* Footer */
.curtain-call {
  text-align: center;
  padding: 2rem 0;
  margin-top: auto;
  opacity: 0.6;
  font-size: 0.875rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }
.hint { font-size: 0.875rem; opacity: 0.7; }

/* Aria */
.aria {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  text-align: center;
  margin: 1rem 0;
}
