/* Fit Vibrant - Modern Blog Styles */

:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #3730a3;
  --accent: #10b981;
  --dark: #1e293b;
  --gray-900: #0f172a;
  --gray-700: #334155;
  --gray-500: #64748b;
  --gray-300: #cbd5e1;
  --gray-100: #f1f5f9;
  --white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --radius: 0.75rem;
}

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

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  line-height: 1.7;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--dark);
  line-height: 1.3;
}

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

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

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow);
}

.navbar-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary) !important;
  letter-spacing: -0.02em;
}

.navbar-brand span {
  color: var(--accent);
}

.navbar .nav-link {
  color: var(--gray-700) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary) !important;
  background: var(--gray-100);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.85) 0%, rgba(16, 185, 129, 0.7) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p,
.hero .subheading {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
}

.hero .meta {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.hero .meta a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

/* Post Cards */
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid var(--gray-100);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card .card-body {
  padding: 2rem;
}

.post-card .post-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.post-card a:hover .post-title {
  color: var(--primary);
}

.post-card .post-meta {
  color: var(--gray-500);
  font-size: 0.875rem;
  font-weight: 500;
}

.post-card .post-meta i {
  color: var(--primary-light);
}

/* Article Content */
.article-content {
  max-width: 750px;
  margin: 0 auto;
}

.article-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--gray-700);
}

.article-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.article-content h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.article-content h4 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: var(--gray-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gray-700);
}

.article-content img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 100%;
  height: auto;
}

.article-content .caption {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Section Spacing */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

/* Badge */
.badge-date {
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
}

/* Contact Form */
.form-control,
.form-select {
  border: 2px solid var(--gray-300);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-floating > label {
  padding: 0.75rem 1rem;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 0.5rem;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0;
}

.site-footer a {
  color: var(--gray-300);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer .footer-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
}

.site-footer .footer-brand span {
  color: var(--accent);
}

.site-footer .copyright {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* Legal Pages */
.legal-content h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h4 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Back to home link */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
}

.back-home:hover {
  color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 0 4rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .section {
    padding: 3rem 0;
  }
  .article-content p,
  .article-content li {
    font-size: 1rem;
  }
}

/* Iframe responsive */
.ast-oembed-container {
  position: relative;
  width: 100%;
  margin: 2rem 0;
}

.ast-oembed-container iframe {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Spacer override */
.wp-block-spacer {
  height: 2rem !important;
}
