/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


summary {
  padding: 14px 16px;
  cursor: pointer;
  min-height: 48px;
}








/* 5. Genel strong etiketlerindeki !important kısıtlamasını kaldır */
/* Bu sayede beyaz arka plandaki diğer kalın yazıların kendi renklerine döner */
strong {
    inherit: all; 
}


/* GeneratePress Site CSS */ /* Top Menu */
.menu-bar-items {
	flex-direction: row-reverse;
}
/* Header alignment */
@media(min-width: 669px) {
	.inside-navigation .navigation-branding {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
	.nav-align-right .inside-navigation {
		justify-content: space-between;
	}
}
/* Search results page header style */
.search-results .page-header .page-title {
	font-size: 36px;
	text-transform: uppercase;
	border-bottom: 2px solid var(--contrast);
}
/* Default theme button */
button,
.form-submit .submit {
	padding-top: 16px;
	padding-bottom: 16px;
}
/* Sidebar */
.sidebar {
	margin-top: 40px;
	margin-left: 0;
}
@media(min-width: 768px) {
	.sidebar {
		margin-left: 40px;
		margin-top: 0;
	}
}
/* Single post - Sticky Related Posts sidebar */
@media(min-width: 769px) {
	.is-sticky {
			position: sticky;
			top: 112px;
	}
}
/* Search modal */
.gp-modal__container {
	overflow-y: auto;
}
.gp-search-modal .gp-modal__overlay {
    padding-top: 15vh;
}
/* Tag cloud */
.wp-block-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	row-gap: 10px;
}
.wp-block-tag-cloud a {
	border-radius: 3px;
	padding: 4px 10px;
}
.site-footer .wp-block-tag-cloud a {
	background-color: var(--contrast);
	color: var(--base);
}
.sidebar .wp-block-tag-cloud a {
	background-color: var(--base);
	color: var(--contrast);
	border: 1px solid var(--contrast);
}
.wp-block-tag-cloud a:hover {
	background-color: var(--base);
	color: var(--contrast);
}
.sidebar a:hover {
	background-color: var(--contrast);
	color: var(--base);
} /* End GeneratePress Site CSS */


/* =========================================

   NOT: Font ailesi (typeface) temanızdan gelir.
   ========================================= */

/* 1. TÜM BAŞLIKLAR İÇİN ORTAK AYARLAR */
.single .entry-content h1,
.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4,
.single .entry-content h5,
.single .entry-content h6,
.single h1.entry-title,
.single .entry-header h1 {
    text-align: center;
    line-height: 1.4;
    box-sizing: border-box;
}

/* --- RENK ZORLAMA AYARI (ÖNEMLİ) --- */
/* H1, H2, H3, H4 içindeki linkler, spanlar ve tüm yazılar kesinlikle BEYAZ olsun */
.single .entry-content h1 *,
.single .entry-content h2 *,
.single .entry-content h3 *,
.single .entry-content h4 *,
.single h1.entry-title *,
.single .entry-header h1 * {
    color: #fff !important;
}

/* 2. H1: ANA BAŞLIK (Krallık/Otorite - Altın Sütunlar) */
.single h1.entry-title,       
.single .entry-header h1,     
.single .post-title,          
.single .entry-content h1 {   
    
    background-color: #1a252f; /* Koyu Lacivert Arka Plan */
    color: #fff !important;    /* Beyaz Yazı */
    
    /* Kenar Süslemeleri */
    border-left: 8px solid #e74c3c; 
    border-right: 8px solid #e74c3c;
    
    padding: 20px 15px;
    margin-top: 20px;
    margin-bottom: 40px;
    
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    display: block;
    width: 100%;
}

/* 3. H2, H3, H4: ARA BAŞLIKLAR (Resmi Belge - Kırmızı Şerit) */
.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4 {
    background-color: #1a252f; /* Koyu Arka Plan */
    color: #fff !important;    /* Beyaz Yazı */
    
    /* Sol Dikkat Çizgisi */
    border-left: 10px solid #e74c3c; 
    
    padding: 12px 20px;
    margin-top: 40px;
    margin-bottom: 20px;
    
    font-weight: 600;
    border-radius: 0 4px 4px 0;
}

/* H3 ve H4 hiyerarşi ayarı */
.single .entry-content h3,
.single .entry-content h4 {
    font-size: 1.2em; 
    border-left-width: 7px;
    padding: 10px 15px;
}

/* 4. H5, H6: KÜÇÜK DETAY BAŞLIKLARI (Sade - Kesikli Çizgi) */
/* Bunlar kutu içinde olmadığı için renkleri KOYU kalmalı, yoksa okunmaz */
.single .entry-content h5,
.single .entry-content h6 {
    color: #1a252f !important; /* Koyu Metin Rengi */
    background: transparent;
    
    border-bottom: 2px dashed #ccc;
    
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* H5 ve H6 içindeki linklerin rengini de koyu yapalım ki kaybolmasın */
.single .entry-content h5 *,
.single .entry-content h6 * {
     color: #1a252f !important;
}

/* Mobilde tabloyu ekrana sığdırma (kaydırma yok) */
@media (max-width: 768px) {

  .entry-content table,
  .post-content table,
  .main-content table {
    width: 100% !important;
    table-layout: fixed !important;     /* sütunlar ekrana göre paylaşılır */
    border-collapse: collapse;
  }

  .entry-content th, .entry-content td,
  .post-content th,  .post-content td,
  .main-content th,  .main-content td {
    padding: 4px 6px !important;
    font-size: clamp(10px, 2.6vw, 13px) !important; /* ekrana göre küçülür */
    line-height: 1.15 !important;

    /* taşma olmasın, kelime/link kır */
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;

    /* hücre içi gereksiz genişlemeyi engelle */
    max-width: 1px; /* fixed layout ile birlikte iyi çalışır */
  }

  /* Başlıkları biraz daha okunur tut */
  .entry-content th,
  .post-content th,
  .main-content th {
    font-size: clamp(10px, 2.8vw, 14px) !important;
  }

  /* Eğer temada otomatik scroll varsa kapat */
  .entry-content table,
  .post-content table,
  .main-content table {
    display: table !important;
    overflow: visible !important;
  }
}
@media (max-width: 480px) {
  .entry-content th, .entry-content td,
  .post-content th,  .post-content td,
  .main-content th,  .main-content td {
    padding: 3px 5px !important;
    font-size: 10px !important;
  }
}
.sidebar a:hover,
.sidebar a:focus {
  background: transparent;
  color: var(--contrast);
  text-decoration: underline;
}
