/* TU Sofia Cybersecurity Club — Premium Dark Minimalist Theme */
:root {
  --bg-app: #09090b;
  --bg-card: #111114;
  --bg-card-subtle: #16161a;
  --bg-input: #0e0e11;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(255, 255, 255, 0.35);
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-accent: #38bdf8;
  
  --status-success: #10b981;
  --status-error: #f43f5e;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

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

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
}

/* Header */
header {
  margin-bottom: 2.5rem;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.card-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.35rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

label .hint {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.35rem;
  font-size: 0.8rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px var(--border-focus);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

textarea {
  resize: vertical;
  min-height: 85px;
}

/* Interest Pills */
.pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.pill-option {
  position: relative;
}

.pill-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-label {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.pill-label:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.pill-option input:checked + .pill-label {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 500;
}

/* Submit Button */
.btn-primary {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  color: #09090b;
  border: 1px solid #ffffff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
  margin-top: 0.75rem;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-primary:active {
  transform: scale(0.99);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Alert Notification */
.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: none;
}

.alert.success {
  display: block;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.alert.error {
  display: block;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #fb7185;
}

/* Terminal Section (At the Bottom) */
.terminal-card {
  background: #08080a;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
}

.terminal-header {
  background: #0e0e12;
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #27272a;
}

.terminal-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  margin-left: 0.65rem;
  flex: 1;
}

.terminal-body {
  padding: 1rem;
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: #d4d4d8;
  line-height: 1.55;
}

.terminal-output {
  margin-bottom: 0.65rem;
  white-space: pre-wrap;
}

.terminal-prompt-user {
  color: var(--text-muted);
}

.terminal-output .highlight-flag {
  color: #fef08a;
  background: rgba(254, 240, 138, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.terminal-prompt {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  user-select: none;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  flex: 1;
}

/* Footer */
footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 3.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

@media (max-width: 640px) {
  .container {
    padding: 2rem 1rem 3.5rem;
  }
  .card {
    padding: 1.35rem;
  }
}
