:root {
  --bg: #0a0a0c;
  --bg-elevated: #141418;
  --bg-input: #0d0d10;
  --border: #2a1a1a;
  --border-gold: #b8860b;
  --text: #f5f5f0;
  --text-muted: #9a9a8e;
  --gold: #e8a317;
  --gold-bright: #ffc107;
  --gold-dim: #b8860b;
  --red: #c41e3a;
  --blue: #0ea5e9;
  --success: #22c55e;
  --radius: 4px;
}

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

body {
  font-family: 'Rajdhani', 'Orbitron', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(232, 163, 23, 0.08), transparent 60%),
    radial-gradient(ellipse 80% 40% at 80% 20%, rgba(196, 30, 58, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Navbar estilo Sparta */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: rgba(10, 10, 12, 0.95);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--gold-bright);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.15s;
}

.nav-link:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 2rem;
  padding-left: 2rem;
}

/* Header */
.header {
  margin-bottom: 1.75rem;
  text-align: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.logo::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0.5rem auto 0;
}

.tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Área principal */
.main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#paste-content {
  width: 100%;
  min-height: 360px;
  padding: 1.125rem 1.25rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-dim);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#paste-content:focus {
  border-color: var(--gold-dim);
  border-left-color: var(--gold);
  box-shadow: 0 0 12px rgba(232, 163, 23, 0.15);
}

#paste-content::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Botões estilo gaming */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.actions-left {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  background: var(--bg-elevated);
  color: var(--text);
  transition: all 0.15s ease;
}

.btn:hover {
  border-color: var(--gold-dim);
  background: rgba(232, 163, 23, 0.08);
  box-shadow: 0 0 8px rgba(232, 163, 23, 0.1);
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  color: #0a0a0c;
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(232, 163, 23, 0.35);
}

.btn-small {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.btn-icon {
  font-size: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  width: 14px;
  height: 14px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Link compartilhar */
.url-display {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.url-display input {
  flex: 1;
  padding: 0.45rem 0.65rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold-dim);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  font-size: 0.8rem;
}

/* Footer estilo Sparta */
.footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.footer-link {
  margin-top: 0.5rem;
}

.footer-link a {
  color: var(--gold-dim);
  text-decoration: none;
  font-size: 0.75rem;
}

.footer-link a:hover {
  color: var(--gold);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 0.65rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(232, 163, 23, 0.2);
}

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

.toast.success {
  border-color: var(--success);
  color: var(--success);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

@media (max-width: 600px) {
  .nav {
    padding: 0.6rem 1rem;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .page {
    padding: 1.5rem 1.125rem;
  }

  .header {
    margin-bottom: 1.5rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions-left {
    justify-content: flex-start;
  }
}
