/* Clean, Professional Light Theme Stylesheet for Bibora Insights Blog */

:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-primary: #3b82f6;      /* Modern Blue */
  --color-primary-dark: #1d4ed8;
  --color-accent: #4f46e5;       /* Indigo */
  
  --text-main: #0f172a;          /* Slate 900 */
  --text-muted: #475569;         /* Slate 600 */
  --text-light: #94a3b8;         /* Slate 400 */
  
  --border-color: #e2e8f0;       /* Slate 200 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
.blog-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo .accent-text {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-nav {
  background-color: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-primary);
}

.btn-nav:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: var(--color-surface);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 200;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
}

.mobile-nav-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.drawer-header span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-main);
}

.drawer-header span .accent-text {
  color: var(--color-primary);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.drawer-link:hover,
.drawer-link.active {
  color: var(--color-primary);
}

.btn-drawer {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 0.8rem;
  margin-top: 1rem;
  display: block;
}

/* Hero Section */
.blog-hero {
  padding: 5rem 0 3.5rem;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.blog-hero h1 {
  font-size: 3rem;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.blog-hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* Filters Section */
.blog-filters {
  padding: 2.5rem 0 1rem;
}

.filter-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-btn {
  background-color: var(--color-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background-color: var(--border-color);
  color: var(--text-main);
}

.filter-btn.active {
  background-color: var(--text-main);
  border-color: var(--text-main);
  color: #ffffff;
}

/* Blog Grid Section */
.blog-grid-section {
  padding: 2rem 0 6rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem;
}

/* Blog Card Styles */
.blog-card {
  background-color: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-placeholder i {
  font-size: 4rem;
  color: var(--text-muted);
  opacity: 0.35;
}

.card-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background-color: var(--color-surface);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.card-meta i {
  margin-right: 4px;
}

.card-title {
  font-size: 1.4rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

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

.card-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: gap var(--transition-fast);
}

.read-btn:hover {
  color: var(--color-primary-dark);
  gap: 0.75rem;
}

/* Featured Post Styling (Takes full width if first) */
.blog-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.blog-card.featured .card-img-wrapper {
  width: 50%;
  height: auto;
  min-height: 320px;
}

.blog-card.featured .card-content {
  width: 50%;
  padding: 3rem;
  justify-content: center;
}

.blog-card.featured .card-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

/* Full Content hidden source */
.full-content {
  display: none;
}

/* Full-page Reader Layout */
.reader-section {
  padding: 4rem 0 6rem;
  background-color: var(--color-surface);
}

.reader-section .blog-container {
  max-width: 780px;
}

.back-articles-btn {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 2.5rem;
  padding: 0.5rem 0;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.back-articles-btn:hover {
  color: var(--color-primary-dark);
  gap: 0.75rem;
}

.reader-header-info {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.75rem;
}

.reader-category {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

/* Category Colors for Reader Tag */
.category-ai-solution {
  background-color: #e0e7ff;
  color: #4338ca;
}

.category-pos-integration {
  background-color: #ecfdf5;
  color: #047857;
}

.category-payment-gateway {
  background-color: #fff7ed;
  color: #c2410c;
}

#reader-title {
  font-size: 2.5rem;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.reader-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reader-meta i {
  margin-right: 6px;
  color: var(--text-light);
}

.reader-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #334155; /* Slate 700 */
}

.reader-body p {
  margin-bottom: 1.5rem;
}

.reader-body h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
}

.reader-body ul, .reader-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.reader-body li {
  margin-bottom: 0.5rem;
}

.article-quote {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-accent);
  border-left: 4px solid var(--color-accent);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  line-height: 1.6;
}

/* Footer Styles */
.blog-footer {
  background-color: #f1f5f9; /* Light gray theme footer */
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: inline-block;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.5;
}

.footer-brand .owner-text {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.footer-bottom .blog-container {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .blog-hero h1 {
    font-size: 2.5rem;
  }
  
  .blog-card.featured {
    flex-direction: column;
  }
  
  .blog-card.featured .card-img-wrapper,
  .blog-card.featured .card-content {
    width: 100%;
  }
  
  .blog-card.featured .card-content {
    padding: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .blog-hero {
    padding: 3.5rem 0 2.5rem;
  }
  
  .blog-hero h1 {
    font-size: 2rem;
  }
  
  .blog-hero p {
    font-size: 1.05rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .reader-content {
    padding: 3rem 2rem;
  }
  
  .reader-close {
    top: 1.5rem;
    right: 1.5rem;
  }
  
  #reader-title {
    font-size: 1.8rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom .blog-container {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
  }
}
