/*
Theme Name: Voicebot IA Blog Theme
Theme URI: https://voicebot-ia-insight.lovable.app/
Description: Exact clone of Lovable blog design - Light theme with clean, modern styling
Version: 2.0.0
Author: Theme Developer
Text Domain: voicebot-ia-blog
*/

/* ================================================
   DESIGN SYSTEM - Exact Lovable Light Theme
   ================================================ */
:root {
  /* Background Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-cta: #E8F5F0;

  /* Text Colors */
  --text-heading: #1E293B;
  --text-primary: #334155;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --text-link: #3B82F6;

  /* Accent Colors */
  --color-blue: #3B82F6;
  --color-blue-light: #EFF6FF;
  --color-green: #10B981;
  --color-green-dark: #059669;
  --color-green-light: #D1FAE5;

  /* Borders */
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.2s ease;
}

/* ================================================
   GLOBAL RESETS
   ================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans) !important;
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-green);
}

/* ================================================
   TYPOGRAPHY - Exact Match
   ================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

/* ================================================
   LAYOUT / CONTAINER
   ================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.site-main {
  padding: var(--space-8) 0;
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading) !important;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--text-secondary) !important;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}

.main-navigation a:hover {
  color: var(--text-heading) !important;
  background: var(--bg-tertiary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-heading);
}

/* ================================================
   BREADCRUMBS - Exact Match
   ================================================ */
.breadcrumbs {
  padding: var(--space-4) 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumbs a {
  color: var(--text-secondary) !important;
}

.breadcrumbs a:hover {
  color: var(--color-blue) !important;
}

.breadcrumbs .separator {
  margin: 0 var(--space-2);
  color: var(--text-muted);
}

.breadcrumbs .current {
  color: var(--color-blue) !important;
  font-weight: 500;
}

/* ================================================
   ARCHIVE / CATEGORY PAGE - Exact Match
   ================================================ */
.archive-header {
  margin-bottom: var(--space-8);
}

.archive-title {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: var(--text-heading) !important;
  margin-bottom: var(--space-4) !important;
  line-height: 1.2;
}

.archive-description {
  font-size: 1rem;
  color: var(--text-secondary) !important;
  max-width: 700px;
  line-height: 1.7;
}

.archive-description a {
  color: var(--color-blue) !important;
}

/* ================================================
   POST GRID - 4 Column Layout (Like Home Page)
   ================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

@media (max-width: 1200px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ================================================
   POST CARD - Exact Lovable Design
   ================================================ */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.post-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  border-color: var(--border-light);
}

/* Card Image */
.post-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-secondary);
  position: relative;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.03);
}

/* Rank Badge (for numbered items like "2", "3", etc.) */
.post-card-rank {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  width: 32px;
  height: 32px;
  background: var(--color-blue);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Card Content */
.post-card-content {
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Card Meta (Author + Read Time) */
.post-card-meta-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.post-card-meta-top .author-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-tertiary);
}

/* Card Category Label */
.card-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

/* Card Title */
.post-card-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: var(--text-heading) !important;
  margin-bottom: var(--space-2) !important;
}

.post-card-title a {
  color: var(--text-heading) !important;
}

.post-card-title a:hover {
  color: var(--color-blue) !important;
}

/* Card Excerpt */
.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary) !important;
  line-height: 1.6;
  margin-bottom: var(--space-3);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Tags */
.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.post-card-tag {
  font-size: 0.75rem;
  padding: var(--space-1) var(--space-2);
  background: var(--bg-tertiary);
  color: var(--text-secondary) !important;
  border-radius: var(--radius-sm);
}

/* Card Features List */
.post-card-features {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  list-style: none;
  margin-bottom: var(--space-3);
}

.post-card-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.post-card-features li::before {
  content: "✓";
  color: var(--color-green);
  font-weight: 600;
}

/* Card Footer */
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
  margin-top: auto;
}

.post-card-price {
  color: var(--text-secondary);
}

/* Read More Link */
.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-blue) !important;
  font-size: 0.875rem;
  font-weight: 500;
}

.read-more-link:hover {
  color: var(--color-green) !important;
}

/* Star Rating */
.star-rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: #F59E0B;
  font-size: 0.875rem;
}

.star-rating .rating-value {
  color: var(--text-secondary);
  margin-left: var(--space-1);
}

/* ================================================
   CATEGORY BADGE (Blue Badge)
   ================================================ */
.post-card-category,
.category-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-blue-light) !important;
  color: var(--color-blue) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

/* ================================================
   SINGLE POST PAGE - Exact Match
   ================================================ */
.single-post-header {
  max-width: 800px;
  margin: 0 auto var(--space-8);
}

/* Category Badge on Single Post */
.single-post-header .category-badge {
  margin-bottom: var(--space-4);
}

/* Single Post Title */
.single-post-title,
body.single .entry-title {
  font-size: 2.25rem !important;
  font-weight: 700 !important;
  color: var(--text-heading) !important;
  line-height: 1.25 !important;
  margin-bottom: var(--space-4) !important;
}

/* Post Excerpt/Description */
.single-post-excerpt {
  font-size: 1.125rem;
  color: var(--text-secondary) !important;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

/* Post Meta Info (Author, Date, Reading Time) */
.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  font-size: 0.875rem;
  color: var(--text-muted) !important;
  margin-bottom: var(--space-6);
}

.single-post-meta .meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.single-post-meta .meta-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* Featured Image */
.single-post-featured-image {
  width: 100%;
  max-width: 800px;
  margin: 0 auto var(--space-8);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.single-post-featured-image img {
  width: 100%;
  height: auto;
}

/* CTA Banner (Green) */
.cta-banner {
  background: var(--bg-cta);
  border: 1px solid var(--color-green-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cta-banner-text {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-heading);
  font-size: 0.9375rem;
}

.cta-banner-text .emoji {
  font-size: 1.25rem;
}

/* Green CTA Button */
.btn-cta,
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-green) !important;
  color: white !important;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  width: fit-content;
}

.btn-cta:hover,
.cta-button:hover {
  background: var(--color-green-dark) !important;
  color: white !important;
}

.btn-cta .arrow {
  font-size: 1rem;
}

/* Post Content */
.single-post-content,
body.single .entry-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-primary) !important;
}

.single-post-content h2,
body.single .entry-content h2 {
  font-size: 1.75rem !important;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--text-heading) !important;
}

.single-post-content h3,
body.single .entry-content h3 {
  font-size: 1.375rem !important;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--text-heading) !important;
}

.single-post-content p,
body.single .entry-content p {
  margin-bottom: var(--space-4);
}

/* ================================================
   FOOTER CTA SECTION (Bottom Banner)
   ================================================ */
.footer-cta-section {
  background: var(--color-green-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  margin: var(--space-10) 0;
}

.footer-cta-section h3 {
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: var(--space-2);
}

.footer-cta-section p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

/* ================================================
   SITE FOOTER
   ================================================ */
.site-footer {
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border-color);
  padding: var(--space-12) 0 var(--space-6);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-widget h3,
.widget-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-heading) !important;
  margin-bottom: var(--space-4);
}

.footer-widget ul {
  list-style: none;
}

.footer-widget li {
  margin-bottom: var(--space-2);
}

.footer-widget a {
  color: var(--text-secondary) !important;
  font-size: 0.9375rem;
}

.footer-widget a:hover {
  color: var(--color-blue) !important;
}

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

/* ================================================
   PAGINATION
   ================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-10) 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary) !important;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: var(--transition);
}

.pagination a:hover {
  background: var(--bg-tertiary);
  border-color: var(--color-blue);
  color: var(--color-blue) !important;
}

.pagination .current {
  background: var(--color-blue) !important;
  border-color: var(--color-blue);
  color: white !important;
}

/* ================================================
   SEARCH / FILTER BAR
   ================================================ */
.search-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  max-width: 400px;
}

.search-input-wrapper input {
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  color: var(--text-primary);
  width: 100%;
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.filter-button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-button:hover {
  background: var(--bg-secondary);
}

/* ================================================
   SOLUTIONS COUNT
   ================================================ */
.solutions-count {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.solutions-count strong {
  color: var(--color-blue);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 768px) {

  h1,
  .archive-title {
    font-size: 1.75rem !important;
  }

  .single-post-title {
    font-size: 1.5rem !important;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-4);
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 999;
  }

  .main-navigation.active {
    transform: translateX(0);
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
  }

  .main-navigation li {
    border-bottom: 1px solid var(--border-light);
  }

  .main-navigation a {
    display: block;
    padding: var(--space-3) 0;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .search-filter-bar {
    flex-direction: column;
    gap: var(--space-3);
  }

  .search-input-wrapper {
    width: 100%;
    max-width: none;
  }

  .single-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

/* ================================================
   WORDPRESS OVERRIDES - Force Light Theme
   ================================================ */
body,
body.home,
body.blog,
body.archive,
body.category,
body.single,
body.page {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

#main-content,
.site-main,
#content,
.content-area,
.container {
  background: transparent !important;
}

article.post,
article.hentry {
  background: var(--bg-card) !important;
}

.entry-title,
.page-title {
  color: var(--text-heading) !important;
}

.entry-content,
.entry-summary {
  color: var(--text-primary) !important;
}

.entry-meta,
.post-meta {
  color: var(--text-muted) !important;
}

/* Hide items not needed */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}