/* ============================================================
   WIMAC CRANE TURKEY — BLOG STYLES
   Standalone stylesheet for the blog index + post pages.
   Consumes the global design tokens from style.css
   (--accent, --light-bg, --light-text*, --dark-bg, etc.).
   ============================================================ */

/* ============ BLOG INDEX — HERO ============ */

.blog-hero {
  background:
    radial-gradient(ellipse at top, rgba(255, 233, 0, 0.05) 0%, transparent 55%),
    linear-gradient(180deg, var(--dark-bg) 0%, #161616 60%, #0a0a0a 100%);
  color: var(--dark-text);
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
}

/* Subtle dot grid pattern */
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 90%);
}

/* Soft yellow glow blobs */
.blog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 28%, rgba(255, 233, 0, 0.10) 0%, transparent 38%),
    radial-gradient(circle at 88% 75%, rgba(255, 233, 0, 0.07) 0%, transparent 40%);
  pointer-events: none;
}

.blog-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.blog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 233, 0, 0.12);
  color: var(--accent);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 233, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.blog-hero__eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: blogPulse 2.2s ease-in-out infinite;
}

@keyframes blogPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

.blog-hero__title {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1.8px;
  margin: 0 0 22px;
}

.blog-hero__title span {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.blog-hero__desc {
  font-size: 18px;
  color: var(--dark-text-muted);
  max-width: 680px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.blog-hero__stats {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.blog-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 28px;
  position: relative;
}

.blog-hero__stat + .blog-hero__stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(255, 255, 255, 0.10);
}

.blog-hero__stat strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  letter-spacing: -0.5px;
}

.blog-hero__stat span {
  font-size: 10px;
  color: var(--dark-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-top: 8px;
}

/* ============ FEATURED POST ============ */

.blog-featured-wrap {
  background: var(--light-bg);
  padding: 80px 0 0;
}

.blog-featured {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s ease,
              border-color 0.3s ease;
  min-height: 440px;
}

.blog-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

.blog-featured__media {
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
}

.blog-featured__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0, 0.2, 1), filter 0.6s ease;
  filter: saturate(0.9);
}

.blog-featured:hover .blog-featured__media img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.blog-featured__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 50%,
    rgba(13, 13, 13, 0.35) 100%);
  pointer-events: none;
}

.blog-featured__badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--light-text);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 6px 20px rgba(255, 233, 0, 0.4);
}

.blog-featured__badge i { font-size: 9px; }

.blog-featured__content {
  padding: 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-text-muted);
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace;
}

.blog-featured__title {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--light-text);
  margin: 0 0 18px;
}

.blog-featured__excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--light-text-muted);
  margin: 0 0 32px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--light-text);
  align-self: flex-start;
  position: relative;
}

.blog-featured__cta::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0.35);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.blog-featured:hover .blog-featured__cta::after { transform: scaleX(1); }
.blog-featured:hover .blog-featured__cta i { transform: translateX(4px); }

.blog-featured__cta i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--light-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: transform 0.3s ease;
}

/* ============ POST CARDS GRID ============ */

.blog-section {
  background: var(--light-bg);
  padding: 64px 0 110px;
  position: relative;
}

.blog-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 24px;
  flex-wrap: wrap;
}

.blog-section__head h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--light-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.blog-section__head h2::before {
  content: '';
  width: 36px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.blog-section__count {
  font-size: 13px;
  color: var(--light-text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

.blog-section__count strong {
  color: var(--light-text);
  font-weight: 700;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s ease,
              border-color 0.3s ease;
  position: relative;
}

/* Top accent bar — animates in on hover */
.blog-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
  z-index: 3;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 233, 0, 0.5);
}

.blog-card:hover::before { transform: scaleX(1); }

.blog-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--light-bg-alt);
}

.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1), filter 0.5s ease;
  filter: saturate(0.85);
}

.blog-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.25), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.blog-card:hover .blog-card__thumb img {
  transform: scale(1.08);
  filter: saturate(1.05);
}

.blog-card:hover .blog-card__thumb::after { opacity: 1; }

/* Numbered counter — sits on the image corner */
.blog-card__num {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(13, 13, 13, 0.78);
  color: var(--dark-text);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.blog-card__body {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--light-text);
  letter-spacing: -0.2px;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__excerpt {
  font-size: 14px;
  color: var(--light-text-muted);
  line-height: 1.6;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding-top: 14px;
  border-top: 1px solid var(--light-border);
  margin-top: auto;
  transition: color 0.2s ease;
}

.blog-card__more i {
  font-size: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--light-bg-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.blog-card:hover .blog-card__more {
  color: var(--light-text);
}

.blog-card:hover .blog-card__more i {
  background: var(--accent);
  color: var(--light-text);
  transform: translateX(4px) scale(1.08);
}

/* ============ SCROLL REVEAL ============ */

.blog-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0, 0.2, 1);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .blog-reveal,
  .blog-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ SINGLE POST ============ */

.post-hero {
  position: relative;
  min-height: 360px;
  background: var(--dark-bg);
  color: var(--dark-text);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.post-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.55) saturate(0.9);
  transform: scale(1.04);
}

.post-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(13, 13, 13, 0.95) 100%);
}

.post-hero__inner {
  position: relative;
  z-index: 1;
  padding: 96px 0 56px;
  width: 100%;
}

.post-hero__crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--dark-text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.post-hero__crumbs a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-hero__crumbs a:hover { color: var(--accent-hover); }

.post-hero__crumbs i {
  font-size: 8px;
  opacity: 0.5;
}

.post-hero__title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
  max-width: 1000px;
}

/* ============ POST BODY ============ */

.post-section {
  background: var(--light-bg);
  padding: 64px 0 80px;
}

.post-article {
  max-width: 760px;
  margin: 0 auto;
}

.post-article p {
  font-size: 17px;
  color: var(--light-text);
  line-height: 1.85;
  margin: 0 0 22px;
}

.post-article p:last-child { margin-bottom: 0; }

.post-article a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-article strong { color: var(--light-text); font-weight: 700; }

.post-article img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 28px 0;
}

.post-article h2,
.post-article h3 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 36px 0 14px;
  color: var(--light-text);
}

.post-article h2 { font-size: 26px; }
.post-article h3 { font-size: 21px; }

/* ============ POST FOOTER (back-link + nav) ============ */

.post-footer {
  background: var(--light-bg-alt);
  padding: 56px 0 80px;
  border-top: 1px solid var(--light-border);
}

.post-footer__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--light-text);
  color: var(--light-bg);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.post-footer__back:hover {
  background: var(--accent-deep);
  color: var(--light-text);
  transform: translateY(-2px);
}

.post-footer__back i { font-size: 11px; }

/* ============ RELATED POSTS ============ */

.related-posts {
  margin-top: 48px;
}

.related-posts__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--light-text);
  margin: 0 0 24px;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 992px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .related-posts__grid { grid-template-columns: repeat(2, 1fr); }
  .blog-hero { padding: 80px 0 64px; }
  .blog-featured-wrap { padding: 64px 0 0; }
  .blog-featured { grid-template-columns: 1fr; min-height: 0; }
  .blog-featured__media { aspect-ratio: 16 / 9; }
  .blog-featured__content { padding: 40px 36px 44px; }
  .post-hero { min-height: 300px; }
  .post-hero__inner { padding: 72px 0 40px; }
  .post-section { padding: 48px 0 64px; }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .related-posts__grid { grid-template-columns: 1fr; }
  .blog-section { padding: 48px 0 80px; }
  .blog-section__head { margin-bottom: 28px; }
  .blog-card__body { padding: 20px 18px 18px; }
  .blog-card__title { font-size: 16px; }
  .blog-featured-wrap { padding: 48px 0 0; }
  .blog-featured__content { padding: 32px 24px 36px; }
  .blog-featured__excerpt { -webkit-line-clamp: 3; }
  .blog-hero { padding: 64px 0 56px; }
  .blog-hero__stats { flex-wrap: wrap; }
  .blog-hero__stat { padding: 12px 22px; }
  .blog-hero__stat strong { font-size: 24px; }
  .post-article p { font-size: 16px; line-height: 1.75; }
  .post-hero__inner { padding: 56px 0 32px; }
  .post-hero__title { font-size: 24px; }
  .post-footer { padding: 40px 0 56px; }
}
