/*
Theme Name:   Kefal — GTA Hile & Mod (Kadence Child)
Description:  Kadence için karanlık, neon/altın vurgulu GTA temalı child tema. GTA Portal Core eklentisiyle uyumludur; tek tık site kurulumu (ana sayfa, menüler, yasal sayfalar, favicon), AdSense ve ads.txt ayarları içerir.
Author:       Kefal
Template:     kadence
Version:      1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  kefal-child
*/

/* ==================================================================
 * 0. Yazı tipi (Anton — SIL OFL 1.1, assets/fonts/OFL-Anton.txt)
 * ================================================================ */
@font-face {
	font-family: "Kefal Display";
	src: url("assets/fonts/anton-tr.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ==================================================================
 * 1. Kadence global paletini karanlık temaya çevir
 *    (html:root, Kadence'in satır içi :root tanımından daha özgüldür)
 * ================================================================ */
html:root {
	--global-palette1: #f5c542; /* Vurgu: bağlantı, buton */
	--global-palette2: #ffdf80; /* Vurgu (hover) */
	--global-palette3: #ffffff; /* Başlıklar */
	--global-palette4: #ececf3; /* Güçlü metin */
	--global-palette5: #c4c4d4; /* Gövde metni */
	--global-palette6: #8d8da4; /* Soluk metin */
	--global-palette7: #1c1c2a; /* İnce arka plan / kenarlık */
	--global-palette8: #0a0a11; /* Site arka planı */
	--global-palette9: #11111a; /* İçerik arka planı */
	--global-palette9rgb: 17, 17, 26;
	--kefal-neon: #ff3ea5;
	--kefal-cyan: #22e4ff;
	--kefal-line: rgba(255, 255, 255, .08);
	--kefal-display: "Kefal Display", Impact, "Arial Narrow Bold", sans-serif;
	color-scheme: dark;
	scrollbar-color: #2a2a3a #0a0a11;
}

/* GTA Portal Core bileşenleri aynı başlık fontunu kullansın */
html .gpc-scope {
	--gpc-display: "Kefal Display", Impact, "Arial Narrow Bold", sans-serif;
}

html body {
	background:
		radial-gradient(70% 40% at 100% 0%, rgba(245, 197, 66, .06), transparent 70%),
		radial-gradient(60% 35% at 0% 30%, rgba(255, 62, 165, .05), transparent 70%),
		var(--global-palette8);
	background-attachment: fixed;
	color: var(--global-palette5);
}

::selection {
	background: var(--global-palette1);
	color: #111;
}

/* ==================================================================
 * 2. Header
 * ================================================================ */
html #masthead {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--kefal-line);
}

html #masthead::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--global-palette1) 30%, var(--kefal-neon) 70%, transparent);
	opacity: .85;
	pointer-events: none;
}

html .site-header-row-container-inner {
	background: rgba(11, 11, 18, .96);
}

/* Logo: maskot + KEFAL yazısı (özel logo yüklenmemişse) */
html .site-branding a.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

html .site-branding a.brand:not(.has-logo-image)::before {
	content: "";
	flex: 0 0 52px;
	width: 52px;
	height: 35px;
	background: url("assets/kefal-maskot.svg") center / contain no-repeat;
	filter: drop-shadow(0 0 10px rgba(255, 62, 165, .45));
	transition: transform .25s ease;
}

html .site-branding a.brand:hover::before {
	transform: rotate(-6deg) scale(1.06);
}

html .site-branding .site-title {
	margin: 0;
	background: linear-gradient(135deg, #ffffff 35%, var(--global-palette1));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: var(--kefal-display);
	font-size: 30px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: .05em;
	text-transform: uppercase;
}

html .site-branding .site-description {
	margin: 3px 0 0;
	color: var(--global-palette6);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* Menü */
html .main-navigation .primary-menu-container > ul > li.menu-item > a {
	color: var(--global-palette5);
	font-weight: 700;
	letter-spacing: .02em;
}

html .main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
html .main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a,
html .main-navigation .primary-menu-container > ul > li.menu-item.current-menu-ancestor > a {
	color: var(--global-palette1);
}

html .header-navigation .header-menu-container ul ul.sub-menu,
html .header-navigation .header-menu-container ul ul.submenu {
	overflow: hidden;
	border: 1px solid var(--kefal-line);
	border-radius: 12px;
	background: #14141f;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}

html .header-navigation .header-menu-container ul ul li.menu-item > a {
	color: var(--global-palette5);
	font-weight: 600;
}

html .header-navigation .header-menu-container ul ul li.menu-item > a:hover {
	background: rgba(245, 197, 66, .08);
	color: var(--global-palette1);
}

html .header-navigation .header-menu-container ul ul li:not(:last-child) {
	border-bottom-color: var(--kefal-line);
}

/* Mobil menü */
html #mobile-drawer .drawer-inner,
html .popup-drawer .drawer-inner {
	background: #0d0d15;
}

html .mobile-navigation ul li a {
	color: var(--global-palette4);
}

html .mobile-navigation ul li.current-menu-item > a,
html .mobile-navigation ul li a:hover {
	color: var(--global-palette1);
}

html .menu-toggle-open,
html .drawer-toggle {
	color: var(--global-palette4);
}

/* ==================================================================
 * 3. İçerik
 * ================================================================ */
html .content-bg,
html .entry.content-bg,
html .loop-entry.content-bg {
	background: var(--global-palette9);
}

html .content-style-boxed .entry,
html .content-style-boxed .content-bg.loop-entry,
html .entry.loop-entry,
html .widget-area .widget {
	border: 1px solid var(--kefal-line);
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

html .entry-content a:not(.wp-block-button__link):not([class*="gpc-"]) {
	color: var(--global-palette1);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

html .entry-content a:not(.wp-block-button__link):not([class*="gpc-"]):hover {
	color: var(--global-palette2);
}

html .entry-content h2,
html .entry-content h3 {
	color: var(--global-palette3);
	letter-spacing: -.01em;
}

html .entry-content > h2.wp-block-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 2em;
}

html .entry-content > h2.wp-block-heading::before {
	content: "";
	flex: 0 0 6px;
	width: 6px;
	height: .95em;
	border-radius: 3px;
	background: linear-gradient(var(--global-palette1), var(--kefal-neon));
	box-shadow: 0 0 12px rgba(245, 197, 66, .5);
}

html .entry-content :not(pre) > code,
html .entry-content kbd {
	padding: .12em .42em;
	border: 1px solid var(--kefal-line);
	border-radius: 6px;
	background: #1a1a27;
	color: var(--global-palette1);
	font-size: .9em;
}

html .entry-content pre {
	border: 1px solid var(--kefal-line);
	border-radius: 12px;
	background: #0b0b12;
	color: var(--global-palette4);
}

html .entry-content blockquote,
html .wp-block-quote {
	border-left: 4px solid var(--global-palette1);
	border-radius: 0 12px 12px 0;
	background: rgba(255, 255, 255, .03);
	color: var(--global-palette4);
}

html .entry-content table:not(.gpc-table) {
	border-collapse: collapse;
}

html .entry-content table:not(.gpc-table) th,
html .entry-content table:not(.gpc-table) td {
	border: 1px solid var(--kefal-line);
}

html .entry-content table:not(.gpc-table) th {
	background: #1a1a27;
	color: var(--global-palette3);
}

html .entry-content hr,
html .wp-block-separator {
	border-color: var(--kefal-line);
}

html .entry-content img {
	border-radius: 12px;
}

/* Form alanları */
html input[type="text"],
html input[type="email"],
html input[type="url"],
html input[type="search"],
html input[type="password"],
html textarea,
html select {
	border-color: #2a2a3a;
	background: #0b0b12;
	color: var(--global-palette4);
}

html input:focus,
html textarea:focus,
html select:focus {
	border-color: var(--global-palette1);
	box-shadow: 0 0 0 3px rgba(245, 197, 66, .15);
}

/* Butonlar */
html .wp-block-button__link,
html button.button,
html .button,
html input[type="submit"] {
	font-weight: 800;
	letter-spacing: .01em;
}

html .wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid rgba(255, 255, 255, .3);
	background: transparent;
	color: #fff;
}

html .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--global-palette1);
	color: var(--global-palette1);
}

/* Arşiv / başlık alanı */
html .entry-hero .entry-hero-container-inner {
	border-bottom: 1px solid var(--kefal-line);
	background: linear-gradient(180deg, #12121c, #0a0a11);
}

html .entry-meta,
html .entry-taxonomies a {
	color: var(--global-palette6);
}

/* Ana sayfada sayfa başlığını gizle (hero bloğu var) */
html body.home.page .entry-hero,
html body.home.page .entry-content-wrap > .entry-header,
html body.home.page .page-title {
	display: none;
}

/* ==================================================================
 * 4. Ana sayfa hero bloğu (.kefal-hero)
 * ================================================================ */
html .kefal-hero {
	position: relative;
	margin-bottom: 2.2em;
	padding: clamp(28px, 5vw, 64px);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 24px;
	background:
		linear-gradient(105deg, rgba(7, 7, 12, .96) 32%, rgba(7, 7, 12, .5) 100%),
		linear-gradient(135deg, var(--kefal-cyan), #7b6cff 50%, var(--kefal-neon));
	isolation: isolate;
}

html .kefal-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 34px 34px;
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 75%);
	mask-image: linear-gradient(to bottom, transparent, #000 75%);
}

html .kefal-hero::after {
	content: "";
	position: absolute;
	right: -2%;
	bottom: 6%;
	z-index: -1;
	width: 44%;
	max-width: 440px;
	aspect-ratio: 3 / 2;
	background: url("assets/kefal-maskot.svg") center / contain no-repeat;
	filter: drop-shadow(0 0 40px rgba(255, 62, 165, .45));
	transform: rotate(-6deg);
	pointer-events: none;
}

html .kefal-hero > * {
	max-width: 620px;
}

html .entry-content .kefal-eyebrow,
html .kefal-eyebrow {
	margin: 0 0 10px;
	color: var(--global-palette1);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
}

html .entry-content .kefal-hero__title,
html .kefal-hero__title {
	max-width: 14ch;
	margin: 0 0 16px;
	color: #fff;
	font-family: var(--kefal-display);
	font-size: clamp(40px, 6.5vw, 76px);
	font-weight: 400;
	line-height: .98;
	letter-spacing: .01em;
	text-transform: uppercase;
	text-shadow: 0 4px 26px rgba(0, 0, 0, .55);
}

html .kefal-hero p:not(.kefal-eyebrow) {
	color: rgba(255, 255, 255, .84);
	font-size: 17px;
}

html .kefal-hero .wp-block-buttons {
	margin-top: 26px;
}

@media (max-width: 760px) {
	html .kefal-hero::after {
		right: -18%;
		bottom: -6%;
		width: 80%;
		opacity: .22;
	}
}

/* ==================================================================
 * 5. Reklam alanları
 * ================================================================ */
html .kefal-ad {
	clear: both;
	margin: 2em auto;
	text-align: center;
}

html .kefal-ad__label {
	display: block;
	margin-bottom: 6px;
	color: var(--global-palette6);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
}

/* ==================================================================
 * 6. Footer
 * ================================================================ */
html .site-footer {
	position: relative;
	border-top: 1px solid var(--kefal-line);
	background: #07070c;
	color: var(--global-palette6);
}

html .site-footer::before {
	content: "";
	position: absolute;
	top: -1px;
	right: 0;
	left: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--kefal-neon) 30%, var(--global-palette1) 70%, transparent);
	opacity: .7;
}

html .site-footer .site-footer-row-container-inner {
	background: transparent;
}

html .site-footer a {
	color: var(--global-palette5);
}

html .site-footer a:hover {
	color: var(--global-palette1);
}

/* ==================================================================
 * 7. Erişilebilirlik
 * ================================================================ */
html a:focus-visible,
html button:focus-visible {
	outline: 2px solid var(--global-palette1);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	html .site-branding a.brand::before {
		transition: none;
	}
}

/* ==================================================================
 * 8. v1.1 — Tekil şifre/mod/rehber sayfaları: kutu içinde kutu yok
 * ================================================================ */
html body.single-hileler .content-bg.entry,
html body.single-modlar .content-bg.entry,
html body.single-rehberler .content-bg.entry {
	border: 0;
	background: transparent;
	box-shadow: none;
}

html body.single-hileler .entry-content-wrap,
html body.single-modlar .entry-content-wrap,
html body.single-rehberler .entry-content-wrap {
	padding-right: 0;
	padding-left: 0;
}

html body.single-hileler .entry-title,
html body.single-modlar .entry-title,
html body.single-rehberler .entry-title {
	font-size: clamp(26px, 4vw, 40px);
	letter-spacing: -.015em;
}

/* Kontur butonlar (ana sayfa) her zaman beyaz yazı */
html body .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
	border: 2px solid rgba(255, 255, 255, .28);
	background: transparent;
	color: #fff;
}

html body .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):hover {
	border-color: var(--global-palette1);
	color: var(--global-palette1);
}

/* Tablo altındaki "Tüm … şifreleri" butonları */
html .entry-content > .wp-block-buttons {
	margin-top: -.6em;
	margin-bottom: 2.4em;
}

html .entry-content > .wp-block-buttons .wp-block-button__link {
	padding: 10px 18px;
	font-size: 14px;
}

@media (max-width: 600px) {
	html .kefal-hero {
		padding: 26px 20px;
		border-radius: 18px;
	}

	html body.home .entry-content-wrap {
		padding-right: 12px;
		padding-left: 12px;
	}
}
