/*
Theme Name: Auctores Blog
Theme URI: https://auctores.ai
Author: Auctores AI
Author URI: https://auctores.ai
Description: Blog theme that mirrors the Auctores app look—glass panels, gradient background, violet primary palette, and Inter/Playfair typography.
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: auctores
*/

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

:root {
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-300: #a5b4fc;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;
  --accent: #C8A266;
  --ink-100: #3f3f46;
  --ink-200: #6b6b73;
  --radius-xl: 18px;
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(255, 255, 255, 0.1);
  --card-border: rgba(255, 255, 255, 0.28);
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--secondary-900);
  background: radial-gradient(120% 120% at 15% 20%, #eef2ff, #f8fafc 45%, #f5f5f5 70%),
    linear-gradient(145deg, #f8fafc 0%, #f1f5f9 40%, #eef2ff 100%);
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-700);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.35em 0;
  color: var(--secondary-900);
  font-weight: 600;
}

h1,
.display {
  font-family: "Playfair Display", Georgia, serif;
}

p {
  margin: 0 0 1em 0;
  color: var(--secondary-800);
}

.site-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 18px;
  z-index: 8;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--secondary-900);
}

.nav__brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(67, 56, 202, 0.18);
}

.nav__links {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.nav__links ul {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}

.nav__links li {
  list-style: none;
}

.nav__link {
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--secondary-800);
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.2s ease;
}

.nav__link:hover,
.nav__link--active {
  background: var(--primary-50);
  color: var(--primary-700);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-200);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #fff;
  box-shadow: 0 10px 22px rgba(99, 102, 241, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.32);
}

.btn-secondary {
  background: var(--secondary-100);
  border-color: var(--secondary-200);
  color: var(--secondary-800);
}

.pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 600;
  font-size: 13px;
}

.glass {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-glass);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
}

.hero {
  margin: 28px 0;
  padding: 28px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 85% 15%, rgba(99, 102, 241, 0.08), transparent 55%);
  pointer-events: none;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-100);
  font-weight: 500;
}

.hero__title {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 12px;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--ink-200);
  max-width: 720px;
}

.post-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 18px;
}

.post-card {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(99, 102, 241, 0.04) 100%);
  pointer-events: none;
}

.post-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-200);
  font-size: 14px;
  margin-bottom: 10px;
}

.post-card__title {
  font-size: 20px;
  margin-bottom: 8px;
}

.post-card__excerpt {
  color: var(--ink-200);
  margin-bottom: 12px;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.badge {
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--secondary-100);
  color: var(--secondary-800);
  font-weight: 600;
  font-size: 13px;
}

.meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink-200);
  font-size: 14px;
  flex-wrap: wrap;
}

.content {
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  border: 1px solid var(--secondary-200);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.content h2 {
  margin-top: 1.6em;
}

.content blockquote {
  margin: 1.2em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary-500);
  background: var(--primary-50);
  color: var(--secondary-900);
  border-radius: 12px;
}

.content img {
  max-width: 100%;
  border-radius: 16px;
  margin: 16px 0;
}

.sidebar {
  position: sticky;
  top: 96px;
  height: fit-content;
}

.widget {
  padding: 18px;
  margin-bottom: 14px;
}

.widget h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.widget li a {
  color: var(--secondary-800);
}

.footer {
  margin-top: 48px;
  padding: 22px;
  text-align: center;
  color: var(--ink-200);
  font-size: 14px;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  margin: 4px 6px 0 0;
  background: var(--secondary-100);
  border-radius: 10px;
  color: var(--secondary-800);
  font-weight: 600;
}

/* Form styles */
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--secondary-200);
  background: rgba(255, 255, 255, 0.9);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--primary-300);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Layout helpers */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .nav {
    position: static;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
