/* ============================================
   HazalHost Blog Styles
   ============================================ */

/* === BLOG LİSTESİ === */
.blog-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d47a1 100%);
  padding: 240px 0 60px;
  text-align: center;
  color: #fff;
}

.blog-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.blog-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  color: #fff;
}

.blog-list-section {
  padding: 60px 0;
  background: #f8f9fa;
  min-height: 50vh;
}

.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.05);
}

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

.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
}

.blog-card-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #0a1628 0%, #0d6efd 50%, #1565c0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-card-img-placeholder::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

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

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: #6c757d;
}

.blog-card-meta .category {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
}

.blog-card-meta .reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a2b4b;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card h2 a:hover {
  color: #0d6efd;
}

.blog-card-excerpt {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.blog-card-author {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 500;
}

.blog-card-read-more {
  color: #0d6efd;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}

.blog-card-read-more:hover {
  gap: 10px;
  color: #0056b3;
}

/* === BLOG DETAY === */
.blog-detail-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d47a1 100%);
  padding: 240px 0 50px;
  color: #fff;
}

.blog-detail-hero .breadcrumb {
  margin-bottom: 15px;
}

.blog-detail-hero .breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.blog-detail-hero .breadcrumb a:hover {
  color: #fff;
}

.blog-detail-hero .breadcrumb span {
  color: rgba(255,255,255,0.5);
  margin: 0 8px;
}

.blog-detail-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #fff;
}

.blog-detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  flex-wrap: wrap;
}

.blog-detail-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-detail-content-wrapper {
  padding: 50px 0 80px;
  background: #fff;
}

.blog-detail-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Article Styles */
.blog-article {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.blog-article .article-intro {
  font-size: 1.15rem;
  color: #444;
  line-height: 1.9;
  border-left: 4px solid #0d6efd;
  padding-left: 20px;
  margin-bottom: 30px;
}

.blog-article h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a2b4b;
  margin-top: 45px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.blog-article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-top: 25px;
  margin-bottom: 12px;
}

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

.blog-article ul, .blog-article ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.blog-article li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.blog-article code {
  background: #f1f3f5;
  color: #e74c3c;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
}

.blog-article pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 20px 25px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid #313244;
  position: relative;
}

.blog-article pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Info & Warning Boxes */
.info-box {
  background: #e7f3ff;
  border: 1px solid #b3d9ff;
  border-left: 4px solid #0d6efd;
  border-radius: 8px;
  padding: 20px 25px;
  margin: 25px 0;
}

.info-box strong {
  color: #0d6efd;
}

.info-box ul {
  margin-bottom: 0;
  margin-top: 10px;
}

.warning-box {
  background: #fff8e1;
  border: 1px solid #ffcc02;
  border-left: 4px solid #ff9800;
  border-radius: 8px;
  padding: 20px 25px;
  margin: 25px 0;
}

.warning-box strong {
  color: #e65100;
}

/* CTA Boxes */
.blog-cta-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border: 1px solid rgba(13, 110, 253, 0.15);
  border-radius: 16px;
  padding: 30px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.blog-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.06) 0%, transparent 70%);
  border-radius: 0 16px 0 100%;
}

.blog-cta-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a2b4b;
  margin-bottom: 15px;
  border: none;
  padding: 0;
  margin-top: 0;
}

.blog-cta-box p {
  color: #495057;
  margin-bottom: 12px;
}

.blog-cta-strong {
  background: linear-gradient(135deg, #0a1628 0%, #0d47a1 100%);
  border: none;
}

.blog-cta-strong h3,
.blog-cta-strong p,
.blog-cta-strong .cta-link {
  color: #fff !important;
}

.cta-link {
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.cta-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.blog-cta-strong .cta-link:hover {
  color: #a5caff !important;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.blog-cta-strong .cta-button {
  background: linear-gradient(135deg, #fff 0%, #e8f4fd 100%);
  color: #0d47a1 !important;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
  color: #fff;
  text-decoration: none;
}

.blog-cta-strong .cta-button:hover {
  color: #0d47a1 !important;
}

/* FAQ */
.faq-section {
  margin-top: 20px;
}

.faq-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: #0d6efd;
  box-shadow: 0 3px 12px rgba(13, 110, 253, 0.08);
}

.faq-question {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #1a2b4b !important;
  padding: 18px 20px !important;
  margin: 0 !important;
  cursor: pointer;
  border: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-question::before {
  content: '❓';
  font-size: 1.1rem;
  flex-shrink: 0;
}

.faq-answer {
  padding: 0 20px 18px;
}

.faq-answer p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #555;
}

/* Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.blog-tag {
  background: #f1f3f5;
  color: #495057;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-tag:hover {
  background: #0d6efd;
  color: #fff;
}

/* Share */
.blog-share {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 15px;
}

.blog-share span {
  font-weight: 600;
  color: #1a2b4b;
  font-size: 0.9rem;
}

.blog-share a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1.1rem;
}

.blog-share a:hover {
  transform: translateY(-3px);
}

.blog-share .share-twitter { background: #1DA1F2; }
.blog-share .share-linkedin { background: #0A66C2; }
.blog-share .share-whatsapp { background: #25D366; }

/* Sidebar TOC */
.blog-toc {
  position: sticky;
  top: 100px;
  background: #f8f9fa;
  border-radius: 16px;
  padding: 25px;
  border: 1px solid #e9ecef;
}

.blog-toc h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a2b4b;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc li {
  margin-bottom: 8px;
}

.blog-toc a {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  display: block;
  padding: 4px 0;
}

.blog-toc a:hover,
.blog-toc a.active {
  color: #0d6efd;
  font-weight: 600;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.blog-pagination a,
.blog-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.blog-pagination a {
  background: #fff;
  color: #495057;
  border: 1px solid #e9ecef;
}

.blog-pagination a:hover {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.blog-pagination .active {
  background: #0d6efd;
  color: #fff;
  border: 1px solid #0d6efd;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .blog-hero h1 { font-size: 1.8rem; }
  .blog-detail-hero h1 { font-size: 1.6rem; }
  .blog-detail-content { padding: 0 15px; }
  .blog-article pre { padding: 15px; }
  .blog-cta-box { padding: 20px; }
  .blog-detail-meta { flex-direction: column; gap: 8px; }
}
