@import url('../ulkeler/ulke-template.css');

.blog-hero {
  padding: 160px 0 100px;
  background: linear-gradient(140deg, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 160, 32, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.blog-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.blog-hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.blog-hero h1 span {
  background: linear-gradient(135deg, var(--gold) 20%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero p {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
}

.blog-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.cat-pill {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.02);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border-color: rgba(232, 160, 32, 0.4);
}

.blog-card-img-wrapper {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
}

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

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

.blog-card-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--gold);
  color: #111;
  font-size: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.blog-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
  transition: gap 0.3s;
}

.blog-card:hover .blog-read-more {
  gap: 0.8rem;
}


.pagination-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pagination {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 5rem;
  background: var(--card-bg);
  padding: 0.6rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.page-link,
.page-num {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 100px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.page-num {
  width: 40px;
  background: transparent;
  border: 1px solid transparent;
}

.page-num:hover {
  background: var(--navy-2);
  color: var(--gold);
  transform: translateY(-1px);
}

.page-num.active {
  background: linear-gradient(135deg, var(--gold) 20%, var(--gold-2) 100%);
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(232, 160, 32, 0.3);
  font-weight: 700;
  cursor: default;
}

.page-num.active:hover {
  transform: none;
}

.page-link {
  padding: 0 1.25rem;
  gap: 0.5rem;
  background: var(--navy-2);
  border: 1px solid var(--border);
}

.page-link .icon {
  transition: transform 0.2s ease;
}

.page-link.prev:hover .icon {
  transform: translateX(-3px);
}

.page-link.next:hover .icon {
  transform: translateX(3px);
}

.page-link:hover:not(.disabled) {
  background: var(--gold);
  color: #0f172a;
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(232, 160, 32, 0.2);
}

.page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.page-dots {
  color: var(--muted);
  font-weight: 600;
  padding: 0 0.25rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 40px;
}

@media (max-width: 640px) {
  .pagination {
    gap: 0.25rem;
    padding: 0.4rem 0.6rem;
  }

  .page-link span {
    display: none;
  }

  .page-link {
    padding: 0;
    width: 40px;
  }
}

.blog-detail-hero {
  padding: 160px 0 60px;
  background: linear-gradient(140deg, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
}

.blog-detail-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.blog-detail-badge {
  display: inline-block;
  background: rgba(232, 160, 32, 0.15);
  color: var(--gold);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1.25rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.blog-detail-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.blog-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.blog-detail-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.blog-author-info {
  display: flex;
  flex-direction: column;
}

.blog-author-name {
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
}

.blog-author-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-share-btns {
  display: flex;
  gap: 0.75rem;
}

.blog-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.2s;
  cursor: pointer;
}

.blog-share-btn:hover {
  background: rgba(232, 160, 32, 0.1);
  color: var(--gold);
  border-color: rgba(232, 160, 32, 0.3);
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .blog-detail-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.blog-detail-content {
  max-width: 100%;
}

.blog-detail-img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 3.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.blog-detail-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 3rem 0 1.25rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.blog-detail-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--white);
}

.blog-detail-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.blog-detail-content ul {
  margin: 1.5rem 0 2rem;
  padding-left: 1.5rem;
}

.blog-detail-content li {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.blog-detail-content blockquote {
  border-left: 4px solid var(--gold);
  margin: 2.5rem 0;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--white);
  background: rgba(232, 160, 32, 0.05);
  padding: 2rem;
  border-radius: 0 16px 16px 0;
  line-height: 1.6;
}

.blog-detail-content a {
  color: var(--gold);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.blog-detail-content a:hover {
  color: var(--gold-2);
}

.toc-box {
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
}

.toc-box h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-box ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

.toc-box li {
  margin-bottom: 0.75rem !important;
}

.toc-box li:last-child {
  margin-bottom: 0 !important;
}

.toc-box li a {
  color: rgba(15, 23, 42, 0.75) !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  transition: all 0.2s;
}

.toc-box li a::before {
  content: '→';
  color: var(--gold);
  margin-right: 0.5rem;
  font-weight: bold;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s;
}

.toc-box li a:hover {
  color: var(--white) !important;
}

.toc-box li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.author-box {
  display: flex;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 4rem;
  align-items: center;
}

.author-box img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 0.5rem;
  flex-shrink: 0;
}

.author-box-info h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.author-box-info p {
  font-size: 1rem !important;
  margin-bottom: 0 !important;
  line-height: 1.6;
}

.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}

.sidebar-widget h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.pop-post {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
  align-items: center;
  transition: transform 0.2s;
}

.pop-post:hover {
  transform: translateX(5px);
}

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

.pop-post img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.pop-post-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
  line-height: 1.4;
  transition: color 0.2s;
}

.pop-post:hover .pop-post-info h5 {
  color: var(--gold);
}

.pop-post-info span {
  font-size: 0.8rem;
  color: var(--muted);
}

.sidebar-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  text-align: center;
  border: none;
  position: relative;
  overflow: hidden;
}

.sidebar-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(232, 160, 32, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.sidebar-cta h4 {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.sidebar-cta .btn-primary {
  width: 100%;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.related-posts {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.related-posts h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .blog-hero {
    padding: 120px 0 60px;
  }

  .blog-container {
    padding: 3rem 1.5rem 4rem;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2.2rem;
  }

  .blog-categories {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .cat-pill {
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
  }

  .blog-detail-hero {
    padding: 120px 0 40px;
  }

  .blog-detail-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .blog-detail-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1rem;
  }

  .blog-detail-layout {
    padding: 2.5rem 1.5rem 4rem;
    gap: 3rem;
  }

  .blog-detail-content p,
  .blog-detail-content li {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .blog-detail-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
  }

  .blog-detail-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
  }

  .related-posts {
    padding: 0 1.5rem 4rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .blog-container {
    padding: 2.5rem 1rem 3rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card-content {
    padding: 1.5rem;
  }

  .blog-card h3 {
    font-size: 1.2rem;
  }

  .blog-detail-layout {
    padding: 2rem 1rem 3rem;
  }

  .related-posts {
    padding: 0 1rem 3rem;
  }

  .blog-detail-img {
    margin-bottom: 2rem;
    border-radius: 12px;
  }

  .blog-detail-content blockquote {
    padding: 1.25rem;
    font-size: 1.1rem;
    margin: 1.5rem 0;
  }
}