/* =========================================================
   ROTA BLOG — PUBLIC SAYFA
========================================================= */

:root{
  --blog-purple:#7c3aed;
  --blog-purple-2:#8b5cf6;
  --blog-purple-3:#a855f7;
  --blog-text:#171421;
  --blog-muted:#706a7d;
  --blog-line:#ebe6f4;
  --blog-surface:#ffffff;
  --blog-soft:#faf8ff;
}

*{box-sizing:border-box}

body.blog-page{
  margin:0;
  font-family:"Plus Jakarta Sans",sans-serif;
  color:var(--blog-text);
  background:
    radial-gradient(circle at 82% 4%,rgba(139,92,246,.10),transparent 26%),
    linear-gradient(180deg,#fff 0%,#fcfbff 100%);
}

.blog-header{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(231,226,241,.78);
}

.blog-logo-link{text-decoration:none}
.nav-links a.active{color:var(--blog-purple);position:relative}
.nav-links a.active::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-18px;
  width:30px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--blog-purple-2),var(--blog-purple));
  transform:translateX(-50%);
}

.blog-main{overflow:hidden}

.blog-hero{
  position:relative;
  min-height:410px;
  display:grid;
  place-items:center;
  padding:110px 32px 80px;
  isolation:isolate;
}

.blog-glow{
  position:absolute;
  border-radius:999px;
  filter:blur(18px);
  pointer-events:none;
  z-index:-1;
}
.blog-glow-one{width:430px;height:430px;background:rgba(168,85,247,.10);top:-120px;right:11%}
.blog-glow-two{width:320px;height:320px;background:rgba(124,58,237,.07);left:10%;bottom:-150px}

.blog-hero-inner{max-width:900px;text-align:center}
.blog-kicker,
.blog-section-kicker{
  display:inline-block;
  color:var(--blog-purple);
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
}
.blog-hero h1{
  margin:14px 0 18px;
  font-size:clamp(44px,5.5vw,78px);
  line-height:1.03;
  letter-spacing:-.055em;
}
.blog-hero h1 span{
  background:linear-gradient(135deg,#8b5cf6,#6d28d9);
  -webkit-background-clip:text;
  color:transparent;
}
.blog-hero p{
  max-width:720px;
  margin:0 auto;
  color:var(--blog-muted);
  font-size:17px;
  line-height:1.8;
}

.blog-content-shell{
  width:min(1320px,calc(100% - 64px));
  margin:0 auto;
  padding:26px 0 96px;
}

.blog-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:32px;
  margin-bottom:26px;
}
.blog-toolbar h2{margin:7px 0 0;font-size:28px;letter-spacing:-.03em}

.blog-categories{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.blog-category{
  border:1px solid var(--blog-line);
  background:#fff;
  color:#615b6c;
  height:38px;
  padding:0 15px;
  border-radius:999px;
  font-family:inherit;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}
.blog-category:hover{border-color:#cdbdf8;color:var(--blog-purple)}
.blog-category.is-active{background:#f2edff;border-color:#d9cdfd;color:var(--blog-purple)}

.blog-featured-card{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);
  overflow:hidden;
  min-height:420px;
  border:1px solid var(--blog-line);
  border-radius:30px;
  background:#fff;
  box-shadow:0 26px 70px rgba(80,58,116,.08);
  margin-bottom:30px;
}

.blog-placeholder{
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center;
  isolation:isolate;
}
.blog-placeholder::before,
.blog-placeholder::after{
  content:"";
  position:absolute;
  border-radius:999px;
  z-index:-1;
}
.blog-placeholder::before{width:260px;height:260px;background:rgba(255,255,255,.40);top:-80px;right:-70px}
.blog-placeholder::after{width:190px;height:190px;background:rgba(255,255,255,.24);bottom:-90px;left:-50px}
.blog-placeholder-icon{
  width:82px;height:82px;border-radius:24px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.88);
  box-shadow:0 18px 40px rgba(91,63,141,.14);
  color:var(--blog-purple);
}
.blog-placeholder-icon svg{width:35px;height:35px}
.blog-placeholder-featured{background:linear-gradient(135deg,#f6ecff 0%,#e8ddff 46%,#d8c9ff 100%)}
.blog-placeholder-one{background:linear-gradient(135deg,#fff0f5,#f4e8ff)}
.blog-placeholder-two{background:linear-gradient(135deg,#eff7ff,#eee9ff)}
.blog-placeholder-three{background:linear-gradient(135deg,#f0fff8,#eee8ff)}

.blog-featured-copy{padding:46px 46px 42px;display:flex;flex-direction:column;justify-content:center}
.blog-meta-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.blog-tag{
  display:inline-flex;align-items:center;
  min-height:28px;padding:0 10px;border-radius:999px;
  background:#f2edff;color:var(--blog-purple);
  font-size:11px;font-weight:800;
}
.blog-date{font-size:12px;color:#9992a4;font-weight:600}
.blog-featured-copy h2{font-size:34px;line-height:1.18;letter-spacing:-.04em;margin:18px 0 14px}
.blog-featured-copy p{color:var(--blog-muted);line-height:1.8;margin:0 0 24px}
.blog-read-more,.blog-card-link{
  display:inline-flex;align-items:center;gap:8px;
  color:var(--blog-purple);text-decoration:none;font-weight:800;
}
.blog-read-more svg,.blog-card-link svg{width:17px;height:17px}

.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.blog-card{
  overflow:hidden;
  border:1px solid var(--blog-line);
  border-radius:24px;
  background:#fff;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.blog-card:hover{transform:translateY(-5px);border-color:#ddd1fa;box-shadow:0 22px 50px rgba(83,59,116,.09)}
.blog-card-media{height:220px}
.blog-card-media .blog-placeholder-icon{width:64px;height:64px;border-radius:20px}
.blog-card-media .blog-placeholder-icon svg{width:28px;height:28px}
.blog-card-body{padding:24px}
.blog-card h3{font-size:20px;line-height:1.35;letter-spacing:-.025em;margin:14px 0 10px}
.blog-card p{color:var(--blog-muted);font-size:14px;line-height:1.75;margin:0 0 18px}

.blog-empty{text-align:center;padding:64px 20px;color:var(--blog-muted)}
.blog-empty svg{width:36px;height:36px;color:#a78bfa;margin-bottom:12px}
.blog-empty h3{margin:0 0 7px;color:var(--blog-text)}
.blog-empty p{margin:0}

.blog-cta{padding:0 32px 90px}
.blog-cta-inner{
  width:min(1320px,100%);
  margin:0 auto;
  min-height:250px;
  border-radius:30px;
  padding:42px 48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:36px;
  color:#fff;
  background:
    radial-gradient(circle at 80% 20%,rgba(255,255,255,.18),transparent 25%),
    linear-gradient(135deg,#5f20d6,#7c3aed 55%,#9b4dff);
  box-shadow:0 28px 70px rgba(94,45,183,.24);
}
.blog-cta .blog-section-kicker{color:#e8ddff}
.blog-cta h2{font-size:36px;letter-spacing:-.04em;margin:8px 0 9px}
.blog-cta p{max-width:650px;margin:0;color:rgba(255,255,255,.82);line-height:1.7}
.blog-cta-button{
  flex:0 0 auto;
  min-height:54px;
  padding:0 20px;
  border-radius:16px;
  display:inline-flex;align-items:center;gap:10px;
  background:#fff;color:#6d28d9;text-decoration:none;font-weight:800;
  box-shadow:0 14px 32px rgba(61,22,133,.18);
}
.blog-cta-button svg{width:18px;height:18px}

.blog-card[hidden],.blog-featured-card[hidden]{display:none!important}

@media (max-width:1050px){
  .blog-featured-card{grid-template-columns:1fr}
  .blog-placeholder-featured{min-height:330px}
  .blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .blog-toolbar{align-items:flex-start;flex-direction:column}
  .blog-categories{justify-content:flex-start}
}

@media (max-width:760px){
  .blog-hero{padding:90px 20px 60px;min-height:350px}
  .blog-hero h1{font-size:46px}
  .blog-content-shell{width:min(100% - 32px,1320px);padding-bottom:70px}
  .blog-featured-copy{padding:30px 26px}
  .blog-featured-copy h2{font-size:27px}
  .blog-grid{grid-template-columns:1fr}
  .blog-card-media{height:210px}
  .blog-cta{padding:0 16px 60px}
  .blog-cta-inner{padding:34px 26px;flex-direction:column;align-items:flex-start}
  .blog-cta h2{font-size:30px}
}

/* =========================================================
   BLOG LİSTE — KART YÜKSEKLİĞİ / ÖZET SINIRLAMA DÜZELTMESİ
========================================================= */

/* Öne çıkan kart artık açıklama uzadıkça büyümez. */
.blog-featured-card{
  height:460px;
  min-height:0;
  align-items:stretch;
}

/* Gerçek yüklenen görsel için sabit medya alanı. */
.blog-featured-media{
  width:100%;
  height:100%;
  min-height:0;
  overflow:hidden;
  background:#f4f0fb;
}

.blog-featured-media img{
  width:100% !important;
  height:100% !important;
  display:block;
  object-fit:cover !important;
}

/* Sağ içerik alanının kartı uzatmasını engelle. */
.blog-featured-copy{
  min-width:0;
  min-height:0;
  overflow:hidden;
}

/* Başlık çok uzarsa kontrollü şekilde kısalt. */
.blog-featured-copy h2{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}

/* Liste sayfasında tüm blog metni değil yalnızca kısa özet göster. */
.blog-featured-copy p{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:6;
}

/* Normal blog kartlarının görselleri de sabit yükseklikte kalır. */
.blog-card-media{
  width:100%;
  height:220px;
  overflow:hidden;
  background:#f4f0fb;
}

.blog-card-media img{
  width:100% !important;
  height:100% !important;
  display:block;
  object-fit:cover !important;
}

/* Alt kartlarda başlık ve açıklama kontrollü uzunlukta. */
.blog-card h3{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.blog-card p{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
}

/* Kartların alt bağlantısı daha düzenli aynı bölgede kalsın. */
.blog-card{
  display:flex;
  flex-direction:column;
}

.blog-card-body{
  flex:1;
  display:flex;
  flex-direction:column;
}

.blog-card-link{
  margin-top:auto;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width:1050px){
  .blog-featured-card{
    height:auto;
    min-height:0;
    grid-template-columns:1fr;
  }

  .blog-featured-media,
  .blog-placeholder-featured{
    height:340px;
    min-height:340px;
  }

  .blog-featured-copy p{
    -webkit-line-clamp:5;
  }
}

@media (max-width:760px){
  .blog-featured-media,
  .blog-placeholder-featured{
    height:250px;
    min-height:250px;
  }

  .blog-featured-copy h2{
    -webkit-line-clamp:3;
  }

  .blog-featured-copy p{
    -webkit-line-clamp:5;
  }

  .blog-card-media{
    height:210px;
  }

  .blog-card p{
    -webkit-line-clamp:4;
  }
}

@media (max-width:480px){
  .blog-featured-media,
  .blog-placeholder-featured{
    height:220px;
    min-height:220px;
  }

  .blog-featured-copy p{
    -webkit-line-clamp:4;
  }

  .blog-card-media{
    height:190px;
  }
}
