/* ================================================================
   BLOG â€” BEM Metodolojisi
   panorama34cafe.com
   YalnÄ±zca blog sayfalarÄ±nda yÃ¼klenir (listing + detay)
   ================================================================ */

/* ----------------------------------------------------------------
   GENEL / YARDIMCI
   ---------------------------------------------------------------- */
.blog-main { background: #13171a; }

/* ----------------------------------------------------------------
   BLOG-HERO  (sayfa baÅŸlÄ±ÄŸÄ± / banner)
   ---------------------------------------------------------------- */
.blog-hero {
  background-color: #1a1d20;
  padding: 52px 0 36px;
  text-align: center;
  border-bottom: 1px solid rgba(183, 159, 115, .12);
}

.blog-hero .page-breadcrumb {
  justify-content: center;
  margin-bottom: 18px;
}

.blog-hero__label {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #b79f73;
  margin-bottom: 10px;
}

.blog-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  color: #fff;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.2;
}

.blog-hero__desc {
  color: rgba(255, 255, 255, .55);
  max-width: 500px;
  margin: 0 auto;
  font-size: .93rem;
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   BLOG-SECTION  (listing wrapper)
   ---------------------------------------------------------------- */
.blog-section {
  min-height: 60vh;
}

/* ----------------------------------------------------------------
   BLOG-GRID
   ---------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

@media (max-width: 575px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   BLOG-CARD
   ---------------------------------------------------------------- */
.blog-card {
  background: #1e2327;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
  will-change: transform;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}

/* --- GÃ¶rsel bÃ¶lÃ¼mÃ¼: CLS Ã¶nleme â€” boyut her zaman 16/9 --- */
.blog-card__thumb-link {
  display: block;
  text-decoration: none;
  flex-shrink: 0;
}

.blog-card__thumb {
  position: relative;
  width: 100%;
  /* aspect-ratio desteklenmeyen tarayÄ±cÄ±lar iÃ§in padding-top yedek */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #2a2f35;
}

/* aspect-ratio desteklenmiyorsa */
@supports not (aspect-ratio: 16 / 9) {
  .blog-card__thumb {
    padding-top: 56.25%;
    height: 0;
  }
  .blog-card__thumb-img,
  .blog-card__thumb-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
  }
}

.blog-card__thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
  display: block;
}

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

.blog-card__thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .15);
}

/* --- GÃ¶vde --- */
.blog-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
}

.blog-card__category {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b79f73;
  background: rgba(183, 159, 115, .1);
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.blog-card__date {
  font-size: .77rem;
  color: rgba(255, 255, 255, .4);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.blog-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.45;
}

.blog-card__title--small { font-size: .9rem; }

.blog-card__title-link {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.blog-card__title-link:hover { color: #b79f73; }

.blog-card__excerpt {
  font-size: .855rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 14px;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  font-weight: 700;
  color: #b79f73;
  text-decoration: none;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: auto;
  transition: gap .18s, color .18s;
}

.blog-card__link:hover {
  color: #d4bc8c;
  gap: 8px;
}

/* ----------------------------------------------------------------
   BLOG-EMPTY
   ---------------------------------------------------------------- */
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 72px 20px;
  color: rgba(255, 255, 255, .35);
}

.blog-empty__icon { margin-bottom: 14px; }

.blog-empty__text { font-size: .95rem; }

/* ----------------------------------------------------------------
   BLOG-PAGINATION
   ---------------------------------------------------------------- */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 48px;
}

.blog-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .55);
  background: #1e2327;
  border: 1px solid rgba(255, 255, 255, .07);
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s;
}

.blog-pagination__btn--active,
.blog-pagination__btn:hover {
  background: #b79f73;
  color: #fff;
  border-color: #b79f73;
}

/* ================================================================
   BLOG-DETAIL  (tek yazÄ±)
   ================================================================ */
.blog-detail { background: #13171a; }

/* --- Hero gÃ¶rsel: aspect-ratio ile CLS sÄ±fÄ±r --- */
.blog-detail__hero {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: #1e2327;
  max-height: 480px;
  flex-shrink: 0;
}

/* aspect-ratio desteklenmiyorsa */
@supports not (aspect-ratio: 21 / 9) {
  .blog-detail__hero {
    position: relative;
    padding-top: 42.85%;
    height: 0;
    max-height: none;
  }
  .blog-detail__hero-img {
    position: absolute;
    top: 0; left: 0;
  }
}

@media (max-width: 767px) {
  .blog-detail__hero { aspect-ratio: 16 / 9; max-height: 280px; }
}

.blog-detail__hero--empty {
  min-height: 48px;
  background: transparent;
}

.blog-detail__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --- Ä°Ã§erik kapsayÄ±cÄ± --- */
.blog-detail__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

/* --- Meta bilgiler --- */
.blog-detail__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.blog-detail__category {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b79f73;
  background: rgba(183, 159, 115, .1);
  padding: 3px 10px;
  border-radius: 3px;
}

.blog-detail__date,
.blog-detail__author {
  font-size: .8rem;
  color: rgba(255, 255, 255, .42);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- BaÅŸlÄ±k --- */
.blog-detail__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 32px;
  color: #b79f73;
  text-align: center;
  text-transform: uppercase;
}

/* --- Ä°Ã§erik alanÄ± --- */
.blog-detail__content {
  color: rgba(255, 255, 255, .72);
  font-size: 1rem;
  line-height: 1.88;
}

.blog-detail__content *:not(a) {
  color: inherit;
}

.blog-detail__content h2 {
  font-size: 1.35rem;
  color: #fff;
  font-weight: 700;
  margin: 38px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(183, 159, 115, .2);
}

.blog-detail__content h3 {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  margin: 28px 0 10px;
}

.blog-detail__content h4 {
  font-size: .95rem;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  margin: 20px 0 8px;
}

.blog-detail__content p { margin-bottom: 18px; }

.blog-detail__content a {
  color: #b79f73;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-detail__content a:hover { color: #d4bc8c; }

.blog-detail__content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 22px auto;
  display: block;
}

.blog-detail__content ul,
.blog-detail__content ol {
  padding-left: 22px;
  margin-bottom: 18px;
  list-style: inherit;
}

.blog-detail__content li { margin-bottom: 5px; }

.blog-detail__content blockquote {
  border-left: 3px solid #b79f73;
  padding: 12px 20px;
  margin: 28px 0;
  background: rgba(183, 159, 115, .06);
  border-radius: 0 5px 5px 0;
  color: rgba(255, 255, 255, .65);
  font-style: italic;
}

.blog-detail__content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: .9rem;
}

.blog-detail__content th,
.blog-detail__content td {
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.1);
  text-align: left;
}

.blog-detail__content th { background: rgba(183,159,115,.1); color: #b79f73; }

/* --- AyraÃ§ --- */
.blog-detail__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin: 40px 0;
}

/* --- PaylaÅŸ --- */
.blog-detail__share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-detail__share-label {
  font-size: .78rem;
  color: rgba(255, 255, 255, .38);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.blog-detail__share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 5px;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .03em;
  transition: opacity .18s, transform .1s;
}

.blog-detail__share-btn:hover  { opacity: .85; }
.blog-detail__share-btn:active { transform: scale(.97); }

.blog-detail__share-btn--whatsapp { background: #25d366; color: #fff; }
.blog-detail__share-btn--facebook  { background: #1877f2; color: #fff; }
.blog-detail__share-btn--twitter   { background: #1a1a1a; color: #fff; }

/* ----------------------------------------------------------------
   BLOG-RELATED
   ---------------------------------------------------------------- */
.blog-related {
  background: #1a1d20;
  padding: 56px 0 72px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.blog-related__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-related__title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 20px;
  background: #b79f73;
  border-radius: 2px;
  flex-shrink: 0;
}

.blog-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-detail__img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 1px 1px 14px #b79f73;
    margin: 0 auto 30px;
    display: table;
}
@media (max-width: 767px) {
  .blog-related__grid { grid-template-columns: 1fr; }
  .blog-detail__title {font-size: 20px;}
}

/* ================================================================
   BREADCRUMB â€” blog sayfalarÄ±nda ortalama
   ================================================================ */
.blog-hero .page-breadcrumb {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* ================================================================
   ERÄ°ÅžÄ°LEBÄ°LÄ°RLÄ°K
   ================================================================ */
.blog-card__thumb-link:focus-visible { outline: 2px solid #b79f73; outline-offset: 2px; }
.blog-card__link:focus-visible       { outline: 2px solid #b79f73; outline-offset: 2px; }
.blog-pagination__btn:focus-visible  { outline: 2px solid #b79f73; outline-offset: 2px; }
.blog-detail__share-btn:focus-visible { outline: 2px solid #b79f73; outline-offset: 2px; }
