/* Scope everything inside the plugin wrapper so it doesn't break your theme */
.radiofm-wrapper {
  --bg: #ffffff;
  --bg-soft: #f3f4f6;
  --bg-card: #ffffff;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius-lg: 18px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  max-width: 1100px;
  margin: 0 auto 32px;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

/* Reset inside wrapper to avoid theme conflicts */
.radiofm-wrapper * {
  box-sizing: border-box;
}

/* Header */

.radiofm-wrapper .site-header {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.radiofm-wrapper .header-inner {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.radiofm-wrapper .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radiofm-wrapper .logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  background: #ffffff;
}

.radiofm-wrapper .brand h1 {
  font-size: 20px;
  margin: 0;
  letter-spacing: 0.03em;
  color: var(--text);
}

.radiofm-wrapper .tagline {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* Optional ad slots */

.radiofm-wrapper .ad-slot {
  border-radius: 999px;
  border: 1px dashed var(--border);
  padding: 6px 14px;
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: #ffffff;
}

.radiofm-wrapper .ad-wrapper {
  margin: 20px 0 0;
  padding: 0 16px 16px;
}

.radiofm-wrapper .ad-slot-bottom {
  width: 100%;
  justify-content: center;
  border-radius: 14px;
  padding: 12px;
}

/* Main layout */

.radiofm-wrapper .page-main {
  padding: 16px 16px 24px;
}

.radiofm-wrapper .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 8px;
  align-items: stretch;
}

.radiofm-wrapper .hero-text h2 {
  font-size: 26px;
  margin: 0 0 10px;
  color: var(--text);
}

.radiofm-wrapper .hero-text p {
  margin: 0 0 14px;
  color: var(--muted);
}

.radiofm-wrapper .benefits {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.radiofm-wrapper .benefits li {
  font-size: 14px;
  color: var(--text);
  background: #eef2ff;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid #d4d9ff;
}

/* Generator Card */

.radiofm-wrapper .generator-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  position: relative;
}

.radiofm-wrapper .generator-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text);
}

.radiofm-wrapper .field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.radiofm-wrapper .field span {
  font-size: 12px;
  color: var(--muted);
}

.radiofm-wrapper .field input,
.radiofm-wrapper .field select {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-size: 14px;
  background: #ffffff;
  color: var(--text);
  outline: none;
}

.radiofm-wrapper .field input:focus,
.radiofm-wrapper .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

/* Buttons */

.radiofm-wrapper .btn-primary,
.radiofm-wrapper .btn-ghost {
  cursor: pointer;
  border-radius: 999px;
  border: none;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
}

.radiofm-wrapper .btn-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4);
  margin-top: 4px;
  width: 100%;
  border: none;
}

.radiofm-wrapper .btn-primary:hover {
  filter: brightness(1.05);
}

.radiofm-wrapper .btn-ghost {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  padding-inline: 14px;
}

.radiofm-wrapper .btn-ghost:hover {
  background: var(--bg-soft);
}

.radiofm-wrapper .hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

/* Results */

.radiofm-wrapper .results-section {
  margin-top: 22px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 14px 12px 14px;
}

.radiofm-wrapper .results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.radiofm-wrapper .results-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.radiofm-wrapper .results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.radiofm-wrapper .results-list li {
  padding: 8px 10px;
  background: #ffffff;
  border-radius: var(--radius-md);
  font-size: 13px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
}

.radiofm-wrapper .result-name {
  flex: 1;
  color: var(--text);
}

.radiofm-wrapper .result-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #eef2ff;
  border-radius: 999px;
  padding: 2px 8px;
  color: #3730a3;
}

/* Info Section */

.radiofm-wrapper .info-section {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px 14px 14px;
  border: 1px solid var(--border);
}

.radiofm-wrapper .info-section h2 {
  margin-top: 0;
  font-size: 18px;
  color: var(--text);
}

/* Footer */

.radiofm-wrapper .site-footer {
  border-top: 1px solid var(--border);
  padding: 10px 16px 12px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  background: #f9fafb;
}

/* Responsive */

@media (max-width: 800px) {
  .radiofm-wrapper .hero {
    grid-template-columns: 1fr;
  }

  .radiofm-wrapper .generator-card {
    order: -1;
  }

  .radiofm-wrapper .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .radiofm-wrapper .ad-slot-top {
    align-self: stretch;
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .radiofm-wrapper .hero-text h2 {
    font-size: 22px;
  }

  .radiofm-wrapper .results-list {
    grid-template-columns: 1fr;
  }

  .radiofm-wrapper {
    border-radius: 0; /* Looks better on very small screens */
    box-shadow: none;
  }
}
