/* MindfulMemento – comprehensive blog theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --accent: #764ba2;
  --text: #1a1a2e;
  --text-muted: #5c5c7a;
  --bg: #fafbfc;
  --white: #ffffff;
  --border: #e8eaef;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 26, 46, 0.12);
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition), background var(--transition);
}

.header.scrolled { box-shadow: var(--shadow); background: rgba(255, 255, 255, 0.98); }

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img, .logo { height: 38px; width: auto; }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.nav-link:hover { background: rgba(102, 126, 234, 0.1); color: var(--primary); }

.nav-link.active {
  background: var(--gradient);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero landing */
.hero-landing {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 24px 80px;
  margin-top: 0;
  overflow: hidden;
}

.hero-landing__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 8s ease-out;
}

.hero-landing:hover .hero-landing__bg { transform: scale(1.06); }

.hero-landing__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(26, 26, 46, 0.88) 0%, rgba(102, 126, 234, 0.55) 55%, rgba(118, 75, 162, 0.45) 100%);
}

.hero-landing__content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  color: var(--white);
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.5rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
  animation: fadeUp 0.6s ease backwards;
}

.hero-badge:nth-child(2) { animation-delay: 0.1s; }

.hero-landing h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 720px;
  animation: fadeUp 0.7s ease 0.15s backwards;
}

.hero-landing .hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  opacity: 0.92;
  max-width: 560px;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s ease 0.25s backwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp 0.7s ease 0.35s backwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn-gradient {
  background: var(--gradient);
  color: var(--white);
}

/* Stats strip */
.stats-strip {
  background: var(--white);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }

/* Section */
.section { padding: 80px 0; }
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); max-width: 560px; }

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeUp 0.5s ease backwards;
}

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

.blog-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card__link:hover { color: inherit; }

.blog-card__image {
  height: 200px;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img { transform: scale(1.05); }

.blog-card__body { padding: 1.35rem 1.5rem 1.5rem; }

.blog-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.blog-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Filters & search */
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.search-box {
  display: flex;
  flex: 1;
  min-width: 220px;
  max-width: 400px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.search-box input {
  flex: 1;
  border: none;
  padding: 12px 18px;
  font-size: 0.95rem;
  outline: none;
}

.search-box button {
  padding: 0 18px;
  border: none;
  background: var(--gradient);
  color: white;
  cursor: pointer;
}

.category-filter { display: flex; flex-wrap: wrap; gap: 8px; }

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }

.filter-btn.active {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination-btn, .pagination-num {
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition);
}

.pagination-btn:hover:not(:disabled), .pagination-num:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.pagination-num.active {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
}

/* Page hero (inner) */
.page-hero {
  padding: calc(var(--header-h) + 48px) 0 48px;
  background: var(--gradient);
  color: var(--white);
  text-align: center;
}

.page-hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.9; max-width: 520px; margin: 0 auto; }

/* Article detail */
.article-detail { padding-bottom: 80px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: calc(var(--header-h) + 24px) 0 16px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

.article-header-block {
  padding: 24px 0 32px;
  max-width: 780px;
}

.article-header-block .article-category {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(102, 126, 234, 0.12);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.article-header-block h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name { font-weight: 600; display: block; }
.author-role { font-size: 0.85rem; color: var(--text-muted); }

.featured-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.featured-image-wrap img { width: 100%; max-height: 480px; object-fit: cover; }

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.article-body p { margin-bottom: 1.25rem; }
.article-body ul { margin: 1rem 0 1.5rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }

.article-figure {
  margin: 2rem 0;
  animation: fadeUp 0.5s ease;
}

.article-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sidebar-widget h3 { font-size: 1rem; margin-bottom: 1rem; }

.takeaways-list { list-style: none; }
.takeaways-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.takeaways-list li:last-child { border-bottom: none; }
.takeaways-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card,
.product-card__link {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card:hover,
.product-card__link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.product-card img { height: 200px; width: 100%; object-fit: cover; }
.product-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.product-price { font-weight: 700; color: var(--primary); font-size: 1.1rem; margin-bottom: 0.5rem; }

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: #f5a623;
}

.product-rating span { color: var(--text-muted); margin-left: 4px; }

.product-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--gradient);
  color: white;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* Product detail */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pros-cons ul { list-style: none; margin-top: 0.75rem; }
.pros-cons li { padding: 6px 0; font-size: 0.95rem; }
.pros-cons .pros li::before { content: '+ '; color: #22c55e; font-weight: 700; }
.pros-cons .cons li::before { content: '− '; color: #ef4444; font-weight: 700; }

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.product-gallery img { border-radius: var(--radius); height: 180px; object-fit: cover; }

/* About / Contact */
.content-page { padding: calc(var(--header-h) + 48px) 0 80px; }
.content-page .container { max-width: 720px; }
.content-page h1 { font-size: 2.25rem; margin-bottom: 1.5rem; }
.content-page p { margin-bottom: 1rem; color: var(--text-muted); font-size: 1.05rem; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

/* Footer */
.footer {
  background: #12121f;
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer h3, .footer h4 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.footer p { font-size: 0.9rem; line-height: 1.6; }

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer a { color: rgba(255, 255, 255, 0.7); }
.footer a:hover { color: var(--white); }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 1.25rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  transition: background var(--transition), transform var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { transform: translateY(-4px); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .content-wrapper { grid-template-columns: 1fr; }
  .sidebar-widget { position: static; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: none; }
  .footer-content { grid-template-columns: 1fr; }
  .product-gallery { grid-template-columns: 1fr; }
}
