:root {
  --font-display: "Arial Rounded MT Bold", "Trebuchet MS", Impact, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pink: #FF3B7A;
  --yellow: #FFD23F;
  --blue: #3DC2FF;
  --green: #2EE59D;
  --orange: #FF8C42;
  --purple: #B24BF3;
  --bg: #FAFAFA;
  --text: #1a1a1a;
  --text-light: #666;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after { content: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== HERO (copy-paste from homepage, class renamed) ===== */
.blog-hero {
  position: relative;
  padding: 80px 24px 90px;
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--pink) 0%, var(--orange) 100%);
  overflow: hidden;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 -50%;
  width: 200%;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.05) 20px, rgba(255,255,255,0.05) 40px);
  animation: slideStripes 28s linear infinite;
  will-change: transform;
}

@keyframes slideStripes {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(56px, 0, 0); }
}

.blog-hero header {
  text-align: center;
  position: relative;
  z-index: 1;
}

.blog-hero .logo h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  color: #fff;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow:
    4px 4px 0 rgba(0,0,0,0.2),
    8px 8px 0 rgba(0,0,0,0.1);
  margin-bottom: 20px;
  transform-origin: center bottom;
  animation: heroTitleIn 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.blog-hero .logo h1 a { color: #fff; }

.blog-hero .logo .on-beat {
  --beat-rotation: -5deg;
  display: inline-block;
  background: rgba(0,0,0,0.2);
  color: #fff;
  font-size: 0.3em;
  padding: 10px 20px;
  border-radius: 100px;
  margin-left: 16px;
  vertical-align: middle;
  transform: rotate(var(--beat-rotation));
  transform-origin: center;
  animation: heroBadgeIn 500ms cubic-bezier(0.22, 1, 0.36, 1) 160ms both;
}

@keyframes heroTitleIn {
  0% { opacity: 0; transform: translateY(22px) scale(0.95) rotate(-1.4deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes heroBadgeIn {
  0% { opacity: 0; transform: translateY(10px) rotate(calc(var(--beat-rotation) - 6deg)) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) rotate(var(--beat-rotation)) scale(1); }
}

.blog-hero .tagline {
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}

@media (max-width: 768px) {
  .blog-hero { padding: 50px 16px 40px; }
  .blog-hero::after { height: 20px; }
  .blog-hero .logo h1 { font-size: 2.5rem; margin-bottom: 8px; }
  .blog-hero .logo .on-beat { font-size: 0.35em; padding: 6px 12px; margin-left: 8px; }
  .blog-hero .tagline { font-size: 1rem; }
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.post-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  margin: 40px 0 20px;
  font-size: 0.9rem;
  font-weight: 700;
}

.breadcrumb a { color: var(--text-light); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb .separator { margin: 0 0.5rem; color: #ccc; }
.breadcrumb .current { color: var(--text); }

/* ===== BLOG LISTING ===== */
.blog-subtitle {
  font-size: 1.08rem;
  color: #5e5e5e;
  text-align: center;
  line-height: 1.7;
  margin: 0 auto 84px;
  max-width: 680px;
}

.blog-section {
  margin-bottom: 112px;
}

/* Section title - same eyebrow style as homepage */
.section-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: #fff;
  display: inline-block;
  padding: 12px 30px;
  background: var(--pink);
  transform: rotate(-1.5deg);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  margin-bottom: 32px;
  line-height: 1.05;
}

/* Card grid */
.blog-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.blog-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .blog-grid-3 { grid-template-columns: 1fr; }
  .section-title { font-size: 1.4rem; padding: 8px 20px; }
}

@media (max-width: 1080px) {
  .blog-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Cards - same as homepage community/level cards */
.blog-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 10px 0 rgba(0,0,0,0.12);
}

.blog-card-featured {
  grid-column: 1 / -1;
}

.blog-card-textonly {
  min-height: 100%;
}

.blog-card-textonly .blog-card-body {
  padding-top: 1.85rem;
}

@media (min-width: 768px) {
  .blog-card-featured {
    flex-direction: row;
    min-height: 340px;
  }
  .blog-card-featured .blog-card-img {
    width: 50%;
    aspect-ratio: auto;
    min-height: 260px;
  }
  .blog-card-featured .blog-card-body {
    width: 50%;
    padding: 2.6rem;
  }
  .blog-card-featured .blog-card-body h3 {
    font-size: 1.65rem;
  }
  .blog-card-featured .blog-card-body p {
    font-size: 1.05rem;
  }
}

.blog-card-img {
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.blog-card-body {
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.blog-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.24;
}

.blog-card-body h3 a:hover { color: var(--pink); }

.blog-card-body p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.72;
  flex: 1;
}

.blog-card-date {
  font-size: 0.8rem;
  color: #aaa;
  font-weight: 700;
  margin-top: auto;
  letter-spacing: 0;
}

/* Tags */
.blog-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.blog-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text);
}

.blog-tag-yellow { background: var(--yellow); }
.blog-tag-pink { background: var(--pink); color: #fff; }
.blog-tag-blue { background: var(--blue); }
.blog-tag-green { background: var(--green); }
.blog-tag-purple { background: var(--purple); color: #fff; }
.blog-tag-orange { background: var(--orange); color: #fff; }

/* ===== FOOTER (identical to homepage) ===== */
footer {
  padding: 80px 24px 50px;
  background: #fff;
  border-top: 4px solid var(--pink);
  margin-top: 120px;
  position: relative;
  text-align: center;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--pink) 0%,
    var(--orange) 25%,
    var(--yellow) 50%,
    var(--green) 75%,
    var(--blue) 100%
  );
}

footer .brand { display: block; margin-bottom: 20px; }
footer .brand-main {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
}
footer .brand-sub {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--pink);
}

footer nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

footer nav a {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.2s;
  white-space: nowrap;
}

footer nav a:hover {
  background: var(--pink);
  color: #fff;
  transform: translateY(-2px);
}
footer .copyright { color: #999; font-size: 0.8rem; }

@media (max-width: 768px) {
  footer nav { gap: 4px; }
  footer nav a { padding: 4px 6px; font-size: 0.75rem; }
}

/* ===== BLOG POST PAGE ===== */
.post-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  padding: 2.8rem 2.9rem 3rem;
  margin: 56px 0 84px;
}

@media (min-width: 768px) {
  .post-card { padding: 3.25rem 3.35rem 3.4rem; }
}

.post-header {
  max-width: 760px;
  margin: 0 auto 2rem;
}

.post-visual {
  margin: 0 0 2.4rem;
  border-radius: 22px;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
  aspect-ratio: 16 / 10;
}

.post-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.12;
  margin-bottom: 0.75rem;
}

.post-subtitle {
  font-size: 1.12rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  max-width: 58ch;
  line-height: 1.72;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 700;
}

.post-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 13px 30px;
  background: var(--yellow);
  color: var(--text);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 1rem;
  box-shadow: 0 4px 0 rgba(0,0,0,0.1);
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.post-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0,0,0,0.12);
}

/* Article content */
.article-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: #2f2f2f;
  line-height: 1.88;
}

.article-content figure {
  margin: 2rem 0;
}

.article-content figure img {
  width: 100%;
  display: block;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.article-content figcaption {
  margin-top: 0.65rem;
  font-size: 0.86rem;
  color: var(--text-light);
  line-height: 1.45;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.72rem;
  margin-top: 3rem;
  margin-bottom: 0.8rem;
  color: var(--text);
  line-height: 1.14;
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.55rem;
  color: var(--text);
  line-height: 1.18;
}

.article-content p { margin-bottom: 1.2rem; line-height: 1.9; }
.article-content ul, .article-content ol { margin-bottom: 1.2rem; margin-left: 1.5rem; }
.article-content li { margin-bottom: 0.55rem; line-height: 1.75; }
.article-content a { color: var(--pink); font-weight: 700; }
.article-content a:hover { text-decoration: underline; }

.tip-box {
  background: rgba(61, 194, 255, 0.12);
  border-left: 4px solid var(--blue);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
  font-weight: 700;
}

/* Post footer */
.post-footer {
  max-width: 760px;
  margin: 3.2rem auto 0;
  padding-top: 1.85rem;
  border-top: 3px solid #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.share-label { font-size: 0.9rem; color: var(--text-light); font-weight: 700; }
.share-links { display: flex; gap: 0.5rem; }

.share-btn {
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.8; }
.share-btn-twitter { background: var(--blue); }
.share-btn-facebook { background: var(--purple); }

@media (max-width: 768px) {
  .blog-subtitle { margin-bottom: 64px; }
  .blog-section { margin-bottom: 84px; }
  .blog-grid-3 { grid-template-columns: 1fr; }
  .post-card {
    padding: 1.55rem 1.35rem 1.8rem;
    margin: 36px 0 68px;
  }
  .post-header { margin-bottom: 1.5rem; }
  .post-visual { margin-bottom: 1.6rem; border-radius: 18px; }
  .post-title { font-size: 1.9rem; }
  .post-subtitle { font-size: 1rem; }
  .article-content { font-size: 1.02rem; }
  .article-content h2 { font-size: 1.45rem; margin-top: 2.25rem; }
  .article-content h3 { font-size: 1.18rem; margin-top: 1.6rem; }
  .article-content figure { margin: 1.5rem 0; }
}
