/*
Theme Name: NaysMedia Blog
Theme URI: https://naysmedia.com/
Author: NaysMedia
Author URI: https://naysmedia.com/
Description: NaysMedia markasına özel, hafif ve hızlı blog teması (blok tema). Koyu zemin, turuncu gradyan vurgular, Outfit yazı tipi; içindekiler, okuma ilerleme çubuğu, okuma süresi, yazı içi iletişim kutusu ve ilgili yazılar.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.2.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nays-blog
*/

/* Gradyan vurgular (theme.json'da gradyan metin olmadigi icin) */
.nays-gradient-text {
	background: linear-gradient(90deg, #ff8c42, #ff3d00);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Arka plan isik halkalari — naysmedia.com ile ayni dil */
body {
	background-image:
		radial-gradient(at 0% 0%, rgba(255, 140, 66, 0.10) 0, transparent 45%),
		radial-gradient(at 100% 0%, rgba(255, 61, 0, 0.09) 0, transparent 45%);
	background-repeat: no-repeat;
	background-attachment: scroll;
}

/* Cam panel */
.nays-panel {
	background: rgba(25, 25, 25, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

/* Kartlar */
.nays-card {
	background: rgba(25, 25, 25, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 20px;
	overflow: hidden;
	height: 100%;
	transition: border-color .2s ease, transform .2s ease;
}
.nays-card:hover { border-color: rgba(255, 140, 66, 0.35); transform: translateY(-2px); }
.nays-card .wp-block-post-featured-image { margin: 0; }
.nays-card .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.nays-card .nays-card-body { padding: 22px; }
.nays-card .wp-block-post-title a { color: #f5f5f5; }
.nays-card .wp-block-post-title a:hover { color: #ff8c42; }

/* Kategori etiketi */
.nays-chip a, .nays-chip {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #ff8c42 !important;
}
.nays-pill a {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	color: #ff8c42;
	border: 1px solid rgba(255, 140, 66, 0.4);
	padding: 5px 12px;
	border-radius: 999px;
	text-transform: none;
	letter-spacing: 0;
}

/* Kategori filtresi (ana sayfa) */
.nays-cats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.nays-cats li a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(25, 25, 25, 0.6); color: #e5e5e5; font-weight: 500;
}
.nays-cats li a:hover, .nays-cats li.current-cat a {
	background: linear-gradient(90deg, #ff8c42, #ff3d00); color: #111111; border-color: transparent; font-weight: 600;
}

/* Gradyan buton */
.wp-block-button.is-style-nays-cta .wp-block-button__link,
.nays-btn {
	background: linear-gradient(90deg, #ff8c42, #ff3d00) !important;
	color: #111111 !important;
	font-weight: 600;
	border-radius: 14px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 22px;
	text-decoration: none;
}
.nays-btn:hover { filter: brightness(1.08); color: #111111 !important; }

/* Ust menu */
.nays-header { border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: rgba(10, 10, 10, 0.72); }
.nays-header .wp-block-navigation a { color: #d4d4d4; }
.nays-header .wp-block-navigation a:hover { color: #ffffff; }
.nays-header .wp-block-site-logo img { height: 44px; width: auto; }
.nays-blog-label { border-left: 1px solid rgba(255, 255, 255, 0.15); padding-left: 12px; color: #a3a3a3; font-size: 14px; font-weight: 500; }

/* Okuma ilerleme cubugu */
.nays-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999; background: linear-gradient(90deg, #ff8c42, #ff3d00); }
.admin-bar .nays-progress { top: 32px; }

/* Icindekiler */
.nays-toc { border-radius: 18px; padding: 22px; }
.nays-toc-title { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #a3a3a3; }
.nays-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.nays-toc li a { display: block; padding: 7px 0; color: #d4d4d4; font-size: 15px; line-height: 1.4; }
.nays-toc li a:hover, .nays-toc li a.is-active { color: #ff8c42; }
.nays-toc:empty, .nays-toc[hidden] { display: none; }
@media (min-width: 1100px) {
	.nays-single-grid { display: grid; grid-template-columns: 260px minmax(0, 740px); gap: 56px; align-items: start; }
	.nays-single-grid .nays-toc { position: sticky; top: 24px; }
}

/* Yazi icerigi */
.nays-content > * + * { margin-top: 1.2em; }
.nays-content h2 { margin-top: 1.8em; }
.nays-content img { border-radius: 18px; height: auto; }
.nays-content figcaption { font-size: 14px; color: #a3a3a3; text-align: left; }
.nays-content blockquote { border: 1px solid rgba(255, 140, 66, 0.3); background: rgba(255, 140, 66, 0.07); border-radius: 18px; padding: 22px 26px; margin-left: 0; margin-right: 0; }
.nays-content a { text-decoration: underline; text-underline-offset: 3px; }
.nays-content table { width: 100%; border-collapse: collapse; }
.nays-content th, .nays-content td { border: 1px solid rgba(255, 255, 255, 0.1); padding: 10px 12px; }

/* Yazi ici iletisim kutusu (functions.php ekler) */
.nays-inline-cta { border-radius: 22px; padding: 28px 30px; margin: 2em 0; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.nays-inline-cta p { margin: 0; }
.nays-inline-cta .nays-cta-title { font-size: 22px; font-weight: 700; color: #f5f5f5; line-height: 1.3; }
.nays-inline-cta .nays-cta-text { font-size: 16px; color: #b5b5b5; margin-top: 6px; }

/* Paylas */
.nays-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.nays-share-label { font-size: 15px; color: #a3a3a3; margin-right: 6px; }
.nays-share a, .nays-share button {
	width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: transparent;
	display: inline-flex; align-items: center; justify-content: center; color: #e5e5e5; cursor: pointer; padding: 0;
}
.nays-share a:hover, .nays-share button:hover { border-color: #ff8c42; color: #ff8c42; }

/* Ilgili yazilar */
.nays-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.nays-related a { display: flex; flex-direction: column; gap: 10px; border-radius: 20px; padding: 22px; color: #f5f5f5; text-decoration: none; }
.nays-related a:hover { border-color: rgba(255, 140, 66, 0.35); }
.nays-related .nays-rel-cat { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #ff8c42; }
.nays-related .nays-rel-title { font-size: 19px; line-height: 1.35; font-weight: 600; }

/* Mobil: sabit WhatsApp cubugu */
.nays-mobile-cta { display: none; }
@media (max-width: 781px) {
	.nays-mobile-cta {
		display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 999; justify-content: center;
		min-height: 50px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	}
	body.single { padding-bottom: 76px; }
	.nays-header .wp-block-site-logo img { height: 34px; }
}

/* Erisilebilirlik: klavye odagi */
a:focus-visible, button:focus-visible { outline: 2px solid #ff8c42; outline-offset: 3px; border-radius: 6px; }

/* Ana sayfa one cikan yazi: gorsel kosesi panelle ayni */
.nays-feature { overflow: hidden; }
.nays-feature .wp-block-post-featured-image { margin: 0; height: 100%; }
.nays-feature .wp-block-post-featured-image img { height: 100%; min-height: 360px; object-fit: cover; }
.wp-block-read-more { font-weight: 600; }

/* Alt bilgi kategorileri */
.nays-footer-cats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.nays-footer-cats a { color: #b5b5b5; }
.nays-footer-cats a:hover { color: #ff8c42; }

/* Arama ve cerceveli buton */
.wp-block-search__button { background: rgba(25, 25, 25, 0.6) !important; color: #f5f5f5 !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; border-radius: 12px !important; min-height: 44px; min-width: 44px; }
.wp-block-search__input { background: #141414; color: #f5f5f5; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; min-height: 44px; padding: 0 14px; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent !important; color: #f5f5f5 !important; border: 1px solid rgba(255, 255, 255, 0.15); }
.wp-block-query-pagination a, .wp-block-query-pagination .current { padding: 8px 12px; border-radius: 10px; }
.wp-block-query-pagination .current { background: rgba(255, 140, 66, 0.15); color: #ff8c42; }

/* Koruma: icerige gomulmus acik tema stilleri (eski NewsAI "modern/classic" temalari, yapistirilan metin)
   koyu zeminde kaybolmasin — baslik, metin, link ve ilk harf rengi temadan gelir */
.nays-content h1[style], .nays-content h2[style], .nays-content h3[style], .nays-content h4[style] {
	color: #f5f5f5 !important; font-family: inherit !important; border-bottom-color: rgba(255, 140, 66, 0.35) !important;
}
.nays-content p[style], .nays-content li[style], .nays-content span[style] { color: inherit !important; }
.nays-content p[style*="justify"] { text-align: left !important; }
.nays-content a[style] { color: #ff8c42 !important; }
.nays-content p > span[style*="float"]:first-child { color: #ff8c42 !important; }
.nays-content [style*="background"]:not(img):not(figure) { background: rgba(25, 25, 25, 0.6) !important; color: inherit !important; }
.nays-content .newsai-content { max-width: none !important; padding: 0 !important; background: none !important; color: inherit !important; font-family: inherit !important; }

/* Yazi ici linklerin alt cizgisi butonlara uygulanmasin */
.nays-content .nays-btn, .nays-content .nays-inline-cta a { text-decoration: none; }

/* Icerik yolu (breadcrumb) */
.nays-yol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #a3a3a3; }
.nays-yol a { color: #a3a3a3; }
.nays-yol a:hover { color: #ff8c42; }

/* Ana sayfa one cikan baslik beyaz (tasarim), uzerine gelince turuncu */
.nays-feature .wp-block-post-title a { color: #f5f5f5; }
.nays-feature .wp-block-post-title a:hover { color: #ff8c42; }

/* Cerez onayi bandi */
.nays-cerez {
	position: fixed; left: 16px; bottom: 16px; z-index: 10000; width: min(440px, calc(100vw - 32px));
	border-radius: 20px; padding: 22px; color: #e5e5e5; font-size: 15px; line-height: 1.6;
	background: rgba(17, 17, 17, 0.92); border-color: rgba(255, 140, 66, 0.25);
}
.nays-cerez[hidden] { display: none; }
.nays-cerez-baslik { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: #f5f5f5; }
.nays-cerez-metin { margin: 0 0 16px; color: #b5b5b5; }
.nays-cerez-metin a { margin-left: 4px; text-decoration: underline; text-underline-offset: 3px; }
.nays-cerez-dugmeler { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nays-cerez .nays-btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.nays-cerez-ikincil {
	min-height: 44px; padding: 0 18px; border-radius: 14px; cursor: pointer; font: inherit; font-weight: 500;
	background: transparent; color: #f5f5f5; border: 1px solid rgba(255, 255, 255, 0.18);
}
.nays-cerez-ikincil:hover { border-color: #ff8c42; color: #ff8c42; }
.nays-cerez-bag { min-height: 44px; padding: 0 6px; background: none; border: 0; color: #a3a3a3; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.nays-cerez-bag:hover { color: #ff8c42; }
.nays-cerez-ayar { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); }
.nays-cerez-ayar[hidden] { display: none; }
.nays-cerez-ayar label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #d4d4d4; cursor: pointer; }
.nays-cerez-ayar input { accent-color: #ff8c42; width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.nays-cerez-ayar .nays-btn { align-self: flex-start; }
@media (max-width: 781px) {
	.nays-cerez { left: 12px; right: 12px; bottom: 12px; width: auto; }
	body.single .nays-cerez:not([hidden]) ~ .nays-mobile-cta { display: none; }
}
