/* ============================================================
   style.css - Clean Black, White & Grey Theme
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-input: #1a1a1a;
  --border: #2a2a2a;
  --border-hover: #444444;
  --text-primary: #f5f5f5;
  --text-muted: #888888;
  --text-subtle: #555555;
  --accent: #ffffff;
  --success: #4caf50;
  --danger: #f44336;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Navbar ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.navbar-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.navbar-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.navbar-links a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.navbar-links a.active {
  color: var(--text-primary);
  background: #222222;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 5rem 2rem 2.5rem;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 3rem;
}

/* ── Feature Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s ease;
  display: block;
}

.feature-card:hover {
  background: #161616;
}

.feature-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Page Layout ── */
.page-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Form Card ── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input[type="text"],
textarea,
select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.15s ease;
  outline: none;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
  border-color: var(--border-hover);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-subtle);
}

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

select option {
  background: var(--bg-card);
}

/* ── Style Selector ── */
.style-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.style-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: "Inter", sans-serif;
}

.style-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.style-btn.selected {
  background: #222222;
  border-color: #555555;
  color: var(--text-primary);
}

/* ── Submit Button ── */
.btn-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--text-primary);
  color: #000000;
  border: none;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
}

.btn-submit:hover {
  opacity: 0.88;
}
.btn-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Response Card ── */
.response-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  display: none;
}

.response-card.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.response-header h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: #1f1f1f;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.response-text {
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* ── Feedback ── */
.feedback-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.75rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.feedback-section.visible {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.feedback-section p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feedback-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-feedback {
  padding: 0.4rem 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
  color: var(--text-muted);
  font-family: "Inter", sans-serif;
}

.btn-yes:hover {
  border-color: var(--success);
  color: var(--success);
}
.btn-no:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.feedback-thanks {
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 500;
  display: none;
}

/* ── Spinner ── */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

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

/* ── Animations ── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .navbar {
    padding: 1rem 1.25rem;
  }
  .page-container {
    padding: 2rem 1rem;
  }
}
