/**
 * Dfruzo Editorial Design System - "The Weight Look"
 * High-contrast typography, executive bento takeaways, comparison tables, and product showcase.
 */

:root {
  --df-green: #09CC56;
  --df-dark-green: #078C3B;
  --df-dark: #0D141A;
  --df-text: #2D3748;
  --df-text-muted: #718096;
  --df-bg-light: #F7F9F6;
  --df-card-border: #E2E8F0;
  --df-font-serif: 'Playfair Display', Georgia, serif;
  --df-font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dfruzo-article-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem 1.25rem;
  font-family: var(--df-font-sans);
  color: var(--df-text);
  line-height: 1.8;
}

/* Category Pill & Header */
.dfruzo-category-pill {
  display: inline-block;
  background: #E6F9EE;
  color: var(--df-dark-green);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.dfruzo-blog-title {
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 800;
  color: var(--df-dark);
  line-height: 1.3;
  margin: 0 0 0.85rem 0;
  letter-spacing: -0.015em;
}

/* Blog Catalog Index Hero */
.dfruzo-blog-index-hero {
  text-align: center;
  margin-bottom: 2.75rem;
}

.dfruzo-blog-index-hero h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: var(--df-dark);
  margin: 0.4rem 0 0.75rem 0;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.dfruzo-blog-index-hero p {
  color: var(--df-text-muted);
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

.dfruzo-blog-card-title {
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  color: var(--df-dark);
  line-height: 1.4 !important;
  margin: 0.4rem 0 0.65rem 0 !important;
}

.dfruzo-blog-card-excerpt {
  color: var(--df-text-muted) !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dfruzo-blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--df-text-muted);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--df-card-border);
  margin-bottom: 2rem;
}

/* Hero Photography */
.dfruzo-hero-wrapper {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 2.5rem;
  background: #E2E8F0;
}

.dfruzo-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Executive Bento Box (AEO Skimmability) */
.dfruzo-bento-box {
  background: var(--df-bg-light);
  border: 1px solid #D1E7DD;
  border-left: 6px solid var(--df-green);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
}

.dfruzo-bento-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--df-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dfruzo-bento-list {
  margin: 0;
  padding-left: 1.25rem;
}

.dfruzo-bento-list li {
  margin-bottom: 0.65rem;
  color: #1A202C;
  font-weight: 500;
}

/* Content Typography */
.dfruzo-content-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--df-dark);
  margin: 2.5rem 0 1rem 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.dfruzo-content-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--df-dark);
  margin: 2rem 0 0.75rem 0;
}

.dfruzo-content-body p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #374151;
}

/* Callout Quote */
.dfruzo-quote-card {
  background: #FFF;
  border-left: 4px solid var(--df-dark);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  font-style: italic;
  font-size: 1.15rem;
  color: #1F2937;
}

/* Data Comparison Tables */
.dfruzo-table-container {
  overflow-x: auto;
  margin: 2.5rem 0;
  border-radius: 12px;
  border: 1px solid var(--df-card-border);
}

.dfruzo-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.dfruzo-comparison-table th {
  background: var(--df-dark);
  color: #FFF;
  padding: 1rem 1.25rem;
  font-weight: 700;
}

.dfruzo-comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--df-card-border);
  color: #2D3748;
}

.dfruzo-comparison-table tr:nth-child(even) {
  background: var(--df-bg-light);
}

/* Featured Product Showcase */
.dfruzo-product-showcase {
  background: #FAFBF9;
  border: 1px solid var(--df-card-border);
  border-radius: 20px;
  padding: 2rem;
  margin: 3.5rem 0;
}

.dfruzo-showcase-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--df-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.dfruzo-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.dfruzo-product-card {
  background: #FFF;
  border: 1px solid #EDF2F7;
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dfruzo-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.dfruzo-card-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.dfruzo-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--df-dark);
  margin-bottom: 0.5rem;
}

.dfruzo-card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--df-dark-green);
  margin-bottom: 1rem;
}

.dfruzo-card-btn {
  display: inline-block;
  background: var(--df-green);
  color: #FFF;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dfruzo-card-btn:hover {
  background: var(--df-dark-green);
}

/* ==========================================================================
   FAQ ACCORDION (VERTICAL SINGLE COLUMN LIST FOR ALL VIEWPORTS)
   ========================================================================== */
.dfruzo-faq-section {
  margin: 3.5rem 0;
  width: 100%;
}

.dfruzo-faq-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--df-dark);
  margin-bottom: 1.5rem;
}

.dfruzo-faq-grid,
.dfruzo-faq-accordion-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.dfruzo-faq-item {
  background: #ffffff;
  border: 1px solid var(--df-card-border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(19, 32, 50, 0.03);
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.dfruzo-faq-item:hover {
  border-color: rgba(112, 168, 59, 0.45);
  box-shadow: 0 6px 20px rgba(112, 168, 59, 0.08);
}

.dfruzo-faq-item.active {
  border-color: var(--df-green);
  box-shadow: 0 6px 22px rgba(112, 168, 59, 0.12);
  background: #ffffff;
}

.dfruzo-faq-question {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 18px 22px;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--df-dark) !important;
  line-height: 1.4 !important;
  transition: color 0.2s ease, background-color 0.2s ease;
  min-height: 54px;
  box-sizing: border-box;
}

.dfruzo-faq-item.active .dfruzo-faq-question {
  color: var(--df-green) !important;
}

.dfruzo-faq-question:hover {
  color: var(--df-green) !important;
  background-color: #fbfdf9;
}

.dfruzo-faq-title-text {
  flex: 1;
}

.dfruzo-faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  background: var(--df-bg-light);
  color: var(--df-green);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, color 0.25s ease;
  user-select: none;
}

.dfruzo-faq-item.active .dfruzo-faq-icon {
  transform: rotate(45deg);
  background: var(--df-green);
  color: #ffffff;
}

.dfruzo-faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #4A5568;
  border-top: none;
  box-sizing: border-box;
}

.dfruzo-faq-item.active .dfruzo-faq-answer {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
  padding: 0 22px 20px 22px;
}

@media (max-width: 768px) {
  .dfruzo-faq-grid,
  .dfruzo-faq-accordion-list {
    gap: 12px !important;
  }
  .dfruzo-faq-question {
    padding: 16px 18px;
    font-size: 0.95rem !important;
    gap: 12px;
  }
  .dfruzo-faq-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    font-size: 16px;
  }
  .dfruzo-faq-answer {
    padding: 0 18px;
  }
  .dfruzo-faq-item.active .dfruzo-faq-answer {
    padding: 0 18px 18px 18px;
  }
}

/* Author Box */
.dfruzo-author-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--df-bg-light);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 4rem;
}

.dfruzo-author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--df-dark);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   MOBILE EDITORIAL BLOG & CONTENT RESPONSIVENESS
   ========================================================================== */
@media (max-width: 640px) {
  .dfruzo-article-wrapper {
    padding: 1.5rem 1rem 3.5rem 1rem !important;
  }

  .dfruzo-blog-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.75rem !important;
  }

  .dfruzo-blog-meta {
    gap: 0.75rem !important;
    font-size: 0.85rem !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .dfruzo-bento-box {
    padding: 1.25rem 1rem !important;
    border-radius: 12px !important;
    margin-bottom: 2rem !important;
  }

  .dfruzo-content-body h2 {
    font-size: 1.4rem !important;
    margin: 2rem 0 0.75rem 0 !important;
  }

  .dfruzo-content-body h3 {
    font-size: 1.2rem !important;
    margin: 1.5rem 0 0.5rem 0 !important;
  }

  .dfruzo-content-body p {
    font-size: 1rem !important;
    margin-bottom: 1.25rem !important;
  }

  .dfruzo-product-showcase {
    padding: 1.25rem 1rem !important;
    margin: 2.5rem 0 !important;
    border-radius: 16px !important;
  }

  .dfruzo-product-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .dfruzo-table-container,
  .entry-content table,
  table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    margin: 1.75rem 0 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .dfruzo-comparison-table th,
  .dfruzo-comparison-table td {
    padding: 0.75rem 0.85rem !important;
    font-size: 0.88rem !important;
  }

  .dfruzo-author-box {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1rem !important;
    padding: 1.25rem 1rem !important;
    margin-top: 2.5rem !important;
  }

  .dfruzo-author-avatar {
    margin: 0 auto !important;
  }
}

/* ==========================================================================
   SHARED THEME HEADER & FOOTER INTEGRATION
   ========================================================================== */
body.dfruzo-blog-custom-template {
  margin: 0;
  padding: 0;
  background-color: #FAFAFA;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.dfruzo-blog-custom-template header.site-header {
  position: relative;
  z-index: 999;
  width: 100%;
}

body.dfruzo-blog-custom-template footer.site-footer {
  position: relative;
  z-index: 10;
  width: 100%;
}

body.dfruzo-blog-index .dfruzo-article-wrapper,
body.dfruzo-single-blog .dfruzo-article-wrapper {
  animation: fadeInBlog 0.35s ease-out;
}

@keyframes fadeInBlog {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

