/* ==========================================================================
   CROWDTEST - CANONICAL CORE THEME & EXTENSIONS
   Strict styling parameters aligned with next-gen visual aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg-dark: #0A0A0A;
  --bg-card: rgba(22, 26, 33, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #D4D4D4;
  --text-white: #FFFFFF;
  --text-muted: #A3A3A3;
  --accent-gold: #D4AF37;
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

::selection {
  background-color: var(--accent-gold);
  color: #000000;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
  z-index: 10000;
  opacity: 0.8;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-white);
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6%;
  z-index: 1000;
}

header .logo {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-white);
  text-decoration: none;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 4px;
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text-white);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: border-color 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-gold {
  background-color: var(--accent-gold);
  color: #000000;
  border: 1px solid var(--accent-gold);
}

.btn-gold:hover {
  background-color: #f7d04f;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-white);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

input, textarea, select {
  width: 100%;
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent-gold);
}

label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: bold;
}

/* Toast styling */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  border-radius: 8px;
  padding: 16px 24px;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 24px 6%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background-color: rgba(10, 10, 10, 0.9);
}

/* Tester Recording Floating Panel styling */
.recording-bar {
  background-color: rgba(22, 26, 33, 0.95);
  border: 2px solid var(--accent-gold);
  border-radius: 8px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
}

.record-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #d32f2f;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}
