/* =====================================================
   Get Genuine Review Blog Page — Premium Edition 2025
   Author: Tech Zenith Labs / Yogesh Raghav
   ===================================================== */

/* GLOBAL BASE */
.blog-template {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  background: #fafafa;
  color: #111;
  overflow-x: hidden;
}

/* =====================================
   HERO SECTION
   ===================================== */
.blog-hero {
  background: linear-gradient(135deg, #0d0d0d, #1e1e1e);
  color: #fff;
  text-align: center;
  padding: 6rem 1rem 4rem;
  position: relative;
}
.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.blog-hero span {
  color: #00c2ff;
}
.blog-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* =====================================
   INTRO SECTION
   ===================================== */
.blog-intro {
  max-width: 820px;
  margin: 3rem auto;
  padding: 1.5rem 2rem;
  font-size: 1rem;
  line-height: 1.6;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: #333;
}

/* =====================================
   CONTENT TYPOGRAPHY (Main Text Area)
   ===================================== */
.blog-content {
  max-width: 850px;
  margin: 0 auto;
  padding: 2.5rem 1.8rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  color: #2a2a2a;
  line-height: 1.8;
  font-size: 1rem;
}

/* Headings */
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  position: relative;
}
.blog-content h2 {
  font-size: 1.65rem;
  color: #e14c06;
  border-left: 5px solid #00c2ff;
  padding-left: 10px;
}
.blog-content h3 {
  font-size: 1.25rem;
  color: #222;
  border-left: 3px solid #ff8c00;
  padding-left: 8px;
}
.blog-content h4 {
  font-size: 1.1rem;
  color: #444;
}

/* Paragraphs */
.blog-content p {
  margin-bottom: 1.4rem;
  color: #444;
}

/* Lists */
.blog-content ul,
.blog-content ol {
  margin: 1rem 0 1.6rem 1.8rem;
  padding-left: 1.2rem;
}
.blog-content li {
  margin-bottom: 0.7rem;
  line-height: 1.6;
}
.blog-content ul li::marker {
  color: #00c2ff;
}

/* Links */
.blog-content a {
  color: #007bff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(0, 123, 255, 0.3);
  transition: all 0.25s ease;
}
.blog-content a:hover {
  color: #00c2ff;
  border-bottom-color: rgba(0, 194, 255, 0.6);
}

/* Emphasis */
.blog-content strong {
  color: #000;
  font-weight: 700;
}
.blog-content em {
  color: #555;
}

/* Blockquotes */
.blog-content blockquote {
  background: #f9fbfc;
  border-left: 4px solid #00c2ff;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-style: italic;
  margin: 1.8rem 0;
  color: #333;
}

/* Section spacing */
.blog-content > *:not(:last-child) {
  margin-bottom: 1.6rem;
}

/* Optional Divider */
.blog-divider {
  width: 80%;
  max-width: 700px;
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, #ddd, transparent);
  margin: 2.5rem auto;
}

/* =====================================
   FILTER BAR
   ===================================== */
.blog-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  position: sticky;
  top: 70px;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 10;
}
.blog-filter .filter-btn {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
}
.blog-filter .filter-btn.active,
.blog-filter .filter-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
  transform: scale(1.05);
}

/* =====================================
   BLOG GRID LAYOUT
   ===================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1250px;
  padding: 0 1.5rem;
}

/* =====================================
   CARD WRAPPER + CARD
   ===================================== */
.blog-card-wrapper {
  position: relative;
  display: block;
  overflow: visible;
}
.blog-card {
  position: relative;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 194, 255, 0.12), transparent 70%);
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: visible;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(0);
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

/* Thumbnail overlay */
.blog-card .thumb-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}
.blog-card .thumb-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.blog-card:hover .thumb-wrap::after {
  opacity: 1;
}
.thumb-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

/* Card Content */
.card-content {
  padding: 1.4rem;
  transition: all 0.3s ease;
}
.card-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.card-content p {
  color: #555;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Read More */
.readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #007bff;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}
.readmore::after {
  content: "→";
  font-size: 1rem;
  transform: translateX(4px);
  transition: transform 0.3s ease;
}
.readmore:hover {
  color: #111;
}
.readmore:hover::after {
  transform: translateX(8px);
}

/* =====================================
   TOOLTIP BUBBLE (Smooth, Dynamic)
   ===================================== */
.blog-card-wrapper .tooltip-bubble {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 0);
  background: rgba(17, 17, 17, 0.97);
  color: #fff;
  padding: 10px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: 10px;
  text-align: center;
  display: block;
  width: fit-content;
  min-width: 200px;
  max-width: 300px;
  white-space: normal;
  box-sizing: border-box;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 0 10px rgba(0, 194, 255, 0.3);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition:
    transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.25s ease;
  will-change: transform, opacity;
}
.blog-card-wrapper:hover .tooltip-bubble {
  opacity: 1;
  transform: translate(-50%, -10px);
}
.blog-card-wrapper .tooltip-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgba(17, 17, 17, 0.97) transparent transparent transparent;
}

/* =====================================
   LOAD MORE BUTTON
   ===================================== */
.load-more-btn {
  background: #111;
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 40px;
  display: block;
  margin: 2rem auto 4rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.load-more-btn:hover {
  background: #00c2ff;
  color: #fff;
  transform: scale(1.05);
}

/* =====================================
   FADE-IN ANIMATION
   ===================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================
   RESPONSIVE TWEAKS
   ===================================== */
@media (max-width: 768px) {
  .blog-intro {
    margin: 2rem 1rem;
    padding: 1rem;
  }
  .blog-grid {
    gap: 1.2rem;
  }
  .thumb-wrap img {
    height: 200px;
  }
  .blog-filter {
    gap: 0.7rem;
  }
  .blog-filter .filter-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  .tooltip-bubble {
    font-size: 0.8rem;
    max-width: 230px;
  }
}
