/* plugtype.world – mobile-first, minimal */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f8f9fa;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --border: #dee2e6;
  --primary: #0d6efd;
  --success: #198754;
  --warning: #b8860b;
  --card-bg: #fff;
  --radius: 8px;
  --touch-min: 44px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

header.hero {
  padding: 1.5rem 1rem;
  text-align: center;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
}

.tagline {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

main {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1rem;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.tool-section {
  margin-bottom: 1.5rem;
}

.compat-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 500;
}

.field select {
  min-height: var(--touch-min);
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a5a5a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

.field select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.result-section {
  margin-bottom: 1.5rem;
}

.result-card {
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.result-title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.result-plug-types {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.result-plug-types p {
  margin: 0.25rem 0;
}

.result-compat {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.result-compat.compatible {
  color: var(--success);
}

.result-compat.adapter-required {
  color: var(--warning);
}

.result-voltage {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.result-warning {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #856404;
  background: #fff3cd;
  border-radius: var(--radius);
}

.country-details,
.cta-section,
.plug-links,
.other-countries {
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  min-height: var(--touch-min);
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}

.cta-button:hover {
  opacity: 0.9;
}

.popular-countries {
  margin-bottom: 1.5rem;
}

.popular-countries ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.popular-countries a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--primary);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
}

.popular-countries a:hover {
  border-color: var(--primary);
}

.info-section,
.faq-section {
  margin-bottom: 1.5rem;
}

.info-section p,
.faq-section dd {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.faq-section dl {
  margin: 0;
}

.faq-section dt {
  margin-top: 0.75rem;
  font-weight: 600;
}

.faq-section dt:first-child {
  margin-top: 0;
}

.faq-section dd {
  margin-left: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

footer {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

footer p {
  margin: 0 0 0.25rem;
}

footer p:last-child {
  margin-bottom: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.page-content {
  margin-bottom: 1.5rem;
}

.page-content h2 {
  margin-top: 1.25rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.creators-section {
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
}

.compat-summary,
.compat-plug,
.compat-voltage,
.compat-related,
.compat-related-pages {
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .compat-form {
    flex-direction: row;
    align-items: flex-end;
  }

  .field {
    flex: 1;
  }
}
