/*
Theme Name: AudioForge
Theme URI: https://audioforge.example
Description: Minimal dark theme for the AudioForge free audio conversion website. Provides the homepage hero + tool grid, page templates for tools, about, privacy policy and terms, and a blog index.
Version: 0.1.0
Requires at least: 6.2
Requires PHP: 7.4
Author: AudioForge
License: GPL-2.0-or-later
Text Domain: audioforge-theme
*/

/* Design tokens */
:root {
  --af-bg: #08080d;
  --af-panel: #0e0e16;
  --af-card: #12121c;
  --af-edge: rgba(255, 255, 255, 0.07);
  --af-text: #e7e7f2;
  --af-muted: #a1a1b5;
  --af-faint: #6b6b80;
  --af-violet: #8b5cf6;
  --af-cyan: #22d3ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--af-bg);
  color: var(--af-text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  color: var(--af-cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* App root: neutralize global anchor styling so the app's own button/link colors win */
#audioforge-root a:any-link {
  color: inherit;
  text-decoration: none;
}
#audioforge-root a[download],
#audioforge-root a[download]:hover {
  color: #fff;
  text-decoration: none;
}
#audioforge-root a.text-zinc-400 {
  color: var(--af-muted);
}

.af-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--af-edge);
}

.af-header-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.af-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.af-logo:hover {
  text-decoration: none;
}
.af-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--af-violet), var(--af-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.af-logo .grad {
  background: linear-gradient(100deg, #c4b5fd, #818cf8, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.af-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.af-nav a {
  color: var(--af-muted);
  font-size: 14px;
  font-weight: 500;
}
.af-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.af-free-badge {
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.af-main {
  max-width: 1152px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.af-hero {
  text-align: center;
  padding: 64px 24px 72px;
  border: 1px solid var(--af-edge);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.06), transparent);
  position: relative;
  overflow: hidden;
}
.af-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 60%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.28), transparent);
  filter: blur(60px);
  pointer-events: none;
}

.af-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: #fff;
}
.af-hero h1 .grad {
  background: linear-gradient(100deg, #c4b5fd, #818cf8, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.af-hero p {
  color: var(--af-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 32px;
}

.af-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.af-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 15px;
}
.af-btn-primary {
  background: linear-gradient(90deg, var(--af-violet), var(--af-cyan));
  color: #fff;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.35);
}
.af-btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.08);
}
.af-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--af-text);
}
.af-btn-secondary:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
}

.af-formats {
  margin-top: 36px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.af-formats span {
  border: 1px solid var(--af-edge);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--af-faint);
}

.af-tools h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.af-tools .sub {
  color: var(--af-faint);
  margin: 0 0 28px;
}

.af-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) {
  .af-tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .af-tool-grid {
    grid-template-columns: 1fr;
  }
}

.af-tool-card {
  display: block;
  border: 1px solid var(--af-edge);
  background: rgba(18, 18, 28, 0.8);
  border-radius: 18px;
  padding: 22px;
  color: var(--af-text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.af-tool-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 18px 40px rgba(139, 92, 246, 0.15);
}
.af-tool-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.af-tool-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #fff;
}
.af-tool-card p {
  margin: 0;
  color: var(--af-faint);
  font-size: 13px;
  line-height: 1.5;
}

.af-tool-grid .icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #c4b5fd;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.af-privacy-note {
  margin-top: 40px;
  border: 1px solid var(--af-edge);
  border-radius: 16px;
  padding: 18px 22px;
  font-size: 14px;
  color: var(--af-muted);
  background: rgba(255, 255, 255, 0.02);
}
.af-privacy-note strong {
  color: var(--af-text);
}

.af-article {
  max-width: 760px;
}
.af-article h1 {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.af-article h2 {
  font-size: 22px;
  margin: 24px 0 8px;
}
.af-article p {
  color: var(--af-muted);
}
.af-article ul {
  color: var(--af-muted);
}

.af-footer {
  border-top: 1px solid var(--af-edge);
  padding: 28px 24px;
}
.af-footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--af-faint);
  font-size: 13px;
}
.af-footer a {
  color: var(--af-faint);
}
.af-footer a:hover {
  color: #fff;
  text-decoration: none;
}
.af-footer nav {
  display: flex;
  gap: 18px;
}

.af-tool-page {
  max-width: 860px;
  margin: 0 auto;
}
.af-tool-page .tool-intro {
  margin-bottom: 12px;
}
.af-tool-page .tool-intro h1 {
  font-size: 28px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.af-tool-page .tool-intro p {
  color: var(--af-muted);
  margin: 0;
}
.af-tool-page .entry-content > p.af-app:first-child {
  margin-top: 0;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.af-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .af-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .af-blog-grid {
    grid-template-columns: 1fr;
  }
}
.af-blog-card {
  display: block;
  border: 1px solid var(--af-edge);
  background: rgba(18, 18, 28, 0.8);
  border-radius: 16px;
  padding: 20px;
  color: var(--af-text);
}
.af-blog-card:hover {
  text-decoration: none;
  border-color: rgba(34, 211, 238, 0.4);
}
.af-blog-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.af-blog-card time {
  color: var(--af-faint);
  font-size: 12px;
}