/* =========================================================================
   Gamedoz - default.css (cats, search, play-games)
   Tam ekran (full width), modern, responsive.
   Mevcut tablo tabanlı HTML'e uyumlu yazıldı.
   ========================================================================= */

:root {
	--sari: #F6C82E;
	--sari-koyu: #E0A800;
	--turuncu: #D44100;
	--metin: #1F2328;
	--soluk: #656D76;
	--zemin: #F6F8FA;
	--kart: #FFFFFF;
	--cizgi: #D0D7DE;
	--golge: 0 1px 0 rgba(31,35,40,.04);
	--link: #0969DA;
	--kenar: 1px solid var(--cizgi);
	--golge-ust: 0 3px 6px rgba(140,149,159,.25), 0 8px 24px rgba(140,149,159,.2);
	--r: 8px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, form, p, h1, h2, h3, h4, ul, li { margin: 0; padding: 0; }
body { background: var(--zemin); color: var(--metin); font: 14px/1.45 var(--font); }
body, td, th { font-family: var(--font); font-size: 14px; color: var(--metin); }
img { border: 0; }
a { color: inherit; text-decoration: none; outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--sari-koyu); outline-offset: 2px; }
li { list-style: none; }
hr { height: 1px; border: 0; background: var(--cizgi); margin: 16px 0; }

/* ---------- Ana iskelet: tam ekran ---------- */
table.main { width: 100%; max-width: none; margin: 0; padding: 12px 20px 0; background: transparent; border: 0; box-shadow: none; }
#govdeTablo { width: 100%; margin-top: 12px; border-collapse: separate; }
#icerikTd { padding: 0; background: transparent; border: 0; vertical-align: top; }
#icerikOvel { display: none; }

/* ---------- Üst bar: logo + arama + diller ---------- */
#logoMenu { background: var(--kart); border-radius: var(--r); border: var(--kenar); box-shadow: var(--golge); padding: 10px 18px; }
#logoMenu > tbody > tr > td:first-child, #logoMenu > tr > td:first-child { width: 170px; }
#logoMenu > tbody > tr > td:first-child img, #logoMenu > tr > td:first-child img { width: 160px; height: auto; max-width: none; display: block; }

div.ara div.sor { width: 100%; max-width: 640px; margin: 0 auto; display: block; }
div.sor ul { display: flex; align-items: stretch; }
div.sor li { float: none; margin: 0; }
div.sor li:first-child { flex: 1; }
div.sor li.lb { height: auto; }
div.sor input.sorgu {
	width: 100%; height: 44px; padding: 0 18px; font: 16px var(--font); color: var(--metin);
	border: 1px solid var(--cizgi); border-right: 0; border-radius: 999px 0 0 999px; background: #F9FAFB;
	transition: border-color .15s, background .15s;
}
div.sor input.sorgu:focus { outline: none; border-color: var(--sari-koyu); background: #fff; }
div.sor input.buton {
	height: 44px; width: auto; padding: 0 22px; border: 0; border-radius: 0 999px 999px 0; cursor: pointer;
	background: var(--sari); color: var(--metin); font: 700 15px var(--font); box-shadow: inset 0 0 0 1px rgba(31,35,40,.15); transition: background .15s;
}
div.sor input.buton:hover { background: var(--sari-koyu); }

/* Arama önerileri (galibabu.js) */
div.galiba ul.bu { position: absolute; z-index: 99; }
div#galibabu { display: none; position: absolute; width: 440px; max-width: calc(100vw - 32px); top: 50px; margin: 0; border: 1px solid var(--cizgi); border-radius: 6px; background: #fff; box-shadow: var(--golge-ust); text-align: left; overflow: hidden; z-index: 100; }
div#galibabu a { display: flex; justify-content: space-between; cursor: pointer; font-size: 14px; padding: 8px 14px; width: auto; color: var(--metin); background: #fff; }
div#galibabu li.hover a { background: var(--sari); color: var(--metin); }
div#galibabu a span.kelime { display: inline-block; width: auto; flex: 1; }
div#galibabu a span.kayit { width: auto; display: inline-block; text-align: right; color: var(--soluk); }
div#galibabu li.hover span.kayit { color: var(--metin); }

/* Dil seçici (üst) */
#language { width: auto; vertical-align: middle; }
.dikeyCizgi { background: none; border-left: 1px solid var(--cizgi); padding-left: 14px; width: auto; display: flex; gap: 14px; text-align: left; }
.dikeyCizgi div { float: none !important; width: auto !important; }
#language a { float: none; display: flex; align-items: center; gap: 6px; margin: 3px 0; color: var(--soluk); font-size: 12px; white-space: nowrap; }
#language a:hover { color: var(--metin); }
#language img { margin: 0; height: 12px; width: 18px; border-radius: 2px; }
#language p { margin: 0; }

/* ---------- Reklam alanları ---------- */
#ustReklam { background: transparent; height: auto; min-height: 0; padding: 0; border: 0; border-radius: 0; text-align: center; }
#ustReklam ins { margin: 0 auto 12px; }
.catsSubAds { margin-top: 16px; padding: 14px; background: var(--kart); border-radius: var(--r); border: var(--kenar); box-shadow: var(--golge); width: 100%; }
.catsSubAds div { text-align: center; }
.goAds, div#adsQuare b, div#loadAds b { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; color: var(--soluk); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Sol menü: kategoriler ---------- */
#kategoriler { width: 220px; padding: 0 16px 0 0 !important; vertical-align: top; }
#kategoriler > table { display: block; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; background: var(--kart) !important; border-radius: var(--r); border: var(--kenar); box-shadow: var(--golge); }
.menuBaslik { padding: 14px 16px 8px; background: none; color: var(--metin); font-weight: 700; font-size: 15px; }
#categories { margin: 0; padding: 0 8px 10px; font-size: 13px; }
#categories li { float: none; width: auto; display: block; padding: 0; color: var(--soluk); font-size: 12px; }
#categories a { display: inline-block; padding: 5px 8px; border-radius: 6px; font-weight: 600; color: var(--link); transition: background .12s, color .12s; }
#categories a:hover { background: #FFF6D6; color: var(--turuncu); }

/* ---------- İçerik kartı ---------- */
#oyunDisi { background: transparent; padding: 0; vertical-align: top; }
.categoryList { width: 100%; background: var(--kart) !important; border-radius: var(--r); border: var(--kenar); box-shadow: var(--golge); padding: 8px 8px 4px; border-collapse: separate; }
.categoryList > tbody > tr, .categoryList > tr { background: transparent !important; }
#catstitle { padding: 12px 12px 0; }
#catstitle.anasayfa h1 { font-size: 18px; font-weight: 700; color: var(--soluk); }
#catstitle h1, #catstitle h2 { float: none; margin: 0; padding: 0; background: none; font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: var(--metin); }
.categoryList select { width: 100%; height: 44px; padding: 0 12px !important; border: 1px solid var(--cizgi); border-radius: 10px !important; background: #F9FAFB; font: 16px var(--font) !important; color: var(--metin) !important; }

/* ---------- Sayfalama ---------- */
.categoryPage, #commentsPage { padding: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.categoryPage a, #commentsPage a {
	float: none; display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; width: auto; padding: 0 10px; margin: 0;
	background: #F3F4F6; color: var(--metin); border-radius: 6px; font-size: 14px; font-weight: 600;
	transition: background .12s;
}
.categoryPage a:hover, #commentsPage a:hover { background: var(--sari); }
.categoryPage .select, #commentsPage .select { background: var(--metin) !important; color: #fff !important; }
#commentsPage { padding: 10px 0; }

/* Liste içi küçük arama (masaüstü) */
#search { display: none; } /* üstte zaten arama var */
#search form { display: flex; }
#search .query { height: 38px; width: 160px; padding: 0 12px; border: 1px solid var(--cizgi); border-right: 0; border-radius: 10px 0 0 10px; font: 14px var(--font); background: #F9FAFB; }
#search .button { height: 38px; padding: 0 14px; border: 0; border-radius: 0 10px 10px 0; background: var(--metin); color: #fff; font: 700 13px var(--font); cursor: pointer; }

/* ---------- Oyun ızgarası (kategori, arama, benzer oyunlar) ---------- */
#categoryGames, #searchGames { padding: 4px 12px 8px; text-align: left; }
.gamesCate { width: 100%; margin: 0; padding: 0; float: none; display: block; overflow: visible; }
#categoryGames ul, #searchGames ul, #otherGames ul {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px 16px;
	width: 100%; margin: 0; padding: 0; text-align: left;
}
#categoryGames li, #searchGames li, #otherGames li { width: auto !important; height: auto; padding: 0 !important; margin: 0 !important; display: block; text-align: left; }
#categoryGames li a, #searchGames li a, #otherGames li a {
	display: flex; flex-direction: column; gap: 8px; color: var(--metin); font-size: 13.5px; font-weight: 600; line-height: 1.3;
}
#categoryGames li a br, #searchGames li a br, #otherGames li a br { display: none; }
#categoryGames li img, #searchGames li img, #otherGames li img, .preview {
	display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover;
	margin: 0; border: 0 !important; border-radius: 6px; background: #E5E7EB; box-shadow: var(--golge);
	transition: transform .18s ease, box-shadow .18s ease;
}
#categoryGames li a:hover img, #searchGames li a:hover img, #otherGames li a:hover img { transform: translateY(-3px); box-shadow: var(--golge-ust); }
#categoryGames li a:hover, #searchGames li a:hover, #otherGames li a:hover { color: var(--turuncu); text-decoration: none; }

/* ---------- Oyun bilgi sayfası (play-games) ---------- */
.griBorder { background: transparent; padding: 0; }
.griBorder > table { background: var(--kart) !important; border-radius: var(--r); border: var(--kenar); box-shadow: var(--golge); }
.griBorder > table > tbody > tr > td { padding: 16px !important; }
.griBorder table table { background: transparent !important; }
.infoSplit { background: transparent; border: 0; border-top: 1px solid var(--cizgi); padding: 16px 0 !important; }

div.gpo { display: inline-block; vertical-align: top; width: calc(100% - 350px); min-width: 300px; }
div#adsQuare { display: inline-block; vertical-align: top; width: 336px; min-width: 0; padding-left: 16px; text-align: left; }

#gameInfo, .gameInfoSub { background: transparent; color: var(--soluk); font-weight: 500; text-align: left; padding: 0 0 12px !important; }
#gameInfo { font-size: 0; } /* kategoriler arasındaki ", " metnini gizler */
#gameInfo .gameFont { font-size: 28px; font-weight: 800; letter-spacing: -.01em; color: var(--metin); margin: 0 0 8px; line-height: 1.15; }
#gameInfo .gameFont a { color: var(--metin); background: none; padding: 0; margin: 0; border-radius: 0; font-size: inherit; font-weight: inherit; }
#gameInfo a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border-radius: 999px; background: #FFF6D6; color: #8A5A00; font-size: 12px; font-weight: 700; }
#gameInfo a:hover { background: var(--sari); color: var(--metin); }
#gameInfo .gameFont a:hover { background: none; color: var(--turuncu); }

div.gpo div.imageDesc { float: none; margin: 0; text-align: left; color: #374151; }
div.gpo div.imgGame { float: left; margin: 0 16px 10px 0; padding: 0; background: none; }
.imgGame img, #oyunEkran { display: block; width: 240px; max-width: 240px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: var(--golge); }
div.gpo div.descGame { float: right; width: 200px; margin-left: 5px; }
div.imageDesc a.play, a.play {
	display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 12px; height: auto; padding: 12px 26px 12px 22px;
	background: var(--sari); color: var(--metin); border-radius: 6px; font-size: 22px; font-weight: 800;
	box-shadow: 0 6px 16px rgba(224,168,0,.35); transition: transform .12s, background .12s;
}
div.imageDesc a.play::before, a.play::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--metin); }
div.imageDesc a.play:hover, a.play:hover { background: var(--sari-koyu); color: var(--metin); transform: translateY(-1px); }
div.imageDesc > a:not(.play) { color: var(--link); font-weight: 600; }

#otherGames { padding-top: 16px !important; }
#otherGames > strong, #comments div.header h3 { display: block; margin-bottom: 12px; font-size: 18px; font-weight: 800; color: var(--metin); }

div.homePage { text-align: center; }
div.homePage a, #addTitle a { display: inline-block; padding: 8px 16px; border-radius: 6px; background: var(--metin); color: #fff; font-weight: 700; }
div.homePage a:hover, #addTitle a:hover { background: var(--turuncu); }
.rightBorder { border-right: 1px solid var(--cizgi); }
#shareGames { display: none; }
#shareGames p a { color: var(--metin); padding: 2px; }
#shareGames p a:hover { background: var(--sari); }
#lastSearch a { color: var(--metin); }
#lastSearch a:hover { color: var(--turuncu); }
#lastSearch div { max-width: 100%; word-wrap: break-word; }

/* Eski yükleme çubuğu */
div#loadAds { width: 300px; }
div#loadBar { width: 100%; max-width: 300px; height: 10px; margin-top: 6px; border: 0; border-radius: 999px; background: #E5E7EB; overflow: hidden; }
div#loadBar div { float: left; height: 10px; width: 0%; background: var(--sari); }
div#loadDescription { margin-top: 6px; }
div#loadDescription li { display: inline-block; float: left; }
div#loadDescription li#loaded { float: right; }
div#loadDescription a { padding: 2px 6px; border-radius: 6px; font-weight: 700; color: var(--turuncu); }
div#loadDescription a:hover { background: var(--sari); color: var(--metin); }
#gameShow { padding: 10px 0; }

/* ---------- Yorumlar ---------- */
#comments div.header { height: auto; }
#comments div.header span.comment { float: right; }
#comments div.header span.comment a { padding: 6px 12px; border-radius: 999px; background: var(--metin); color: #fff; font-weight: 700; font-size: 13px; }
#comments div.header span.comment a:hover { background: var(--turuncu); }
#comments div.commentCase { margin-top: 4px; padding: 6px 16px; background: #F9FAFB; border: 1px solid var(--cizgi); border-radius: 6px; color: #374151; }
#comments div.commentCase a { font-weight: 700; color: var(--metin); }
#comments div.commentCase a:hover { color: var(--turuncu); }
#comments div.comment { padding: 12px 0; margin: 0; border: 0; border-bottom: 1px solid var(--cizgi); }
#comments div.comment p { padding: 4px 0 0; width: auto; max-width: 100%; word-wrap: break-word; overflow-wrap: anywhere; }
#comments div.end { border: 0; }
#post-comment { margin-top: 16px; }
#post-comment h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
#post-comment textarea.textComment { width: 100%; max-width: 100%; min-width: 0; height: 96px; padding: 10px 12px; border: 1px solid var(--cizgi); border-radius: 6px; font: 14px var(--font); }
#post-comment input#nick { width: 50%; height: 40px; padding: 0 12px; border: 1px solid var(--cizgi); border-radius: 6px; font: 14px var(--font); }
#post-comment span.not1, #post-comment div.post span.not { color: var(--soluk); }
#post-comment div.post { height: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#post-comment div.post input { float: none; height: 40px; padding: 0 20px; border: 0; border-radius: 6px; background: var(--sari); color: var(--metin); font: 700 14px var(--font); cursor: pointer; }

/* ---------- Alt bilgi ---------- */
#downdesc { width: 100%; margin: 24px 0 16px; text-align: center; }
#downdesc td { font-size: 13px; color: var(--soluk); }
#downdesc strong { color: var(--metin); }
#downdesc a { color: var(--soluk); }
#downdesc a:hover { color: var(--metin); text-decoration: none; }

div.lng { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
div.lng a { float: none; display: inline-flex; margin: 0; padding: 4px 8px; border-radius: 8px; color: var(--soluk); opacity: 1; cursor: pointer; }
div.lng a:hover { background: #fff; color: var(--metin); text-decoration: none !important; }
div.lng a span { float: none; display: inline-block; font: 12px var(--font); padding: 2px 0 0 26px; height: 17px; background: url(../graphic/flag.from.png) no-repeat; }
div.lng a span.de { background-position: 0 -19px; }
div.lng a span.es { background-position: 0 -38px; }
div.lng a span.fr { background-position: 0 -57px; }
div.lng a span.br { background-position: 0 -76px; }
div.lng a span.it { background-position: 0 -95px; }
div.lng a span.tr { background-position: 0 -114px; }
div.lng a span.jp { background-position: 0 -133px; }
div.lng a span.nl { background-position: 0 -152px; }
div.lng a span.ru { background-position: 0 -171px; }
div.lng a span.ko { background-position: 0 -190px; }
div.lng a span.cn { background-position: 0 -209px; }
div.lng a span.sv { background-position: 0 -228px; }
div.lng a span.uk { background-position: 0 -247px; }
div.lng a span.pl { background-position: 0 -266px; }
div.lng a span.el { background-position: 0 -285px; }

#copyright { width: 100%; height: auto; padding: 0; margin: 0; background: var(--turuncu); border: 0; border-radius: var(--r) var(--r) 0 0; color: #FFE9DD; font-size: 12px; font-weight: 400; }
#copyright > tbody > tr > td, #copyright > tr > td { padding: 20px 24px; font-size: 12px; color: #FFE9DD; }
#copyright td::after { content: ""; display: table; clear: both; }
#copyright .vgn { display: inline-block; background: #fff; padding: 4px 8px; border-radius: 8px; line-height: 0; }
#copyright .hak { float: left; }
#copyright .hak p { margin-top: 8px; max-width: 360px; }
#copyright .link { float: right; width: auto; }
#copyright .link h2 { font-size: 13px; font-weight: 700; color: #FFE08A; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
#copyright .link ul { float: left; width: auto; min-width: 130px; display: inline-block; }
#copyright .link a, #copyright a { color: #fff; font-size: 13px; font-family: var(--font); line-height: 1.8; }
#copyright .link a:hover, #copyright a:hover { color: #fff; text-decoration: underline; }

/* ---------- Diğer eski parçalar ---------- */
.altReklam { height: auto; display: block; margin-top: 12px; }
.altReklam .reklam { position: static; margin: 0; width: 100%; height: auto; padding: 0; background: none; text-align: center; }
.frivCase { width: 100%; overflow: hidden; }
.friv { width: 100%; overflow: hidden; height: 56px; padding: 3px; }
.friv a { width: 50px; height: 50px; float: left; margin-right: 6px; border-radius: 6px; border: 0; box-shadow: var(--golge); background-position: center !important; cursor: pointer; transition: transform .12s; }
.friv a:hover { transform: scale(1.08); width: 50px; height: 50px; margin: 0 6px 0 0; }

div.paylas_butonu { display: inline-block; width: 120px; }
div#ss24 { overflow: hidden; display: inline-block; height: 24px; }
div#ss24 a { float: left; margin: 0 4px 4px 0 !important; padding: 0; cursor: pointer; height: 24px; width: 24px; overflow: hidden; display: block; background: url(../graphic/ftg.png) no-repeat; }
div#ss24 a.facebook { background-position: -64px 0; }
div#ss24 a.twitter { background-position: -64px -24px; }
div#ss24 a.google { background-position: -64px -48px; }
div#ss24 a.facebook:hover { background-position: -88px 0; }
div#ss24 a.twitter:hover { background-position: -88px -24px; }
div#ss24 a.google:hover { background-position: -88px -48px; }

/* ---------- Çok geniş ekran: kartlar biraz büyüsün ---------- */
@media (min-width: 1800px) {
	#categoryGames ul, #searchGames ul, #otherGames ul { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

/* ---------- Tablet / telefon ---------- */
@media (max-width: 800px) {
	table.main { padding: 8px 8px 0; }
	#logoMenu { padding: 8px 10px; border-radius: 6px; }
	#logoMenu > tbody > tr > td:first-child, #logoMenu > tr > td:first-child { width: 120px; }
	#logoMenu > tbody > tr > td:first-child img, #logoMenu > tr > td:first-child img { width: 116px; }
	td#language, #language { display: none !important; }
	div.ara div.sor { padding: 0 0 0 10px; }
	div.sor input.sorgu { height: 40px; padding: 0 14px; }
	div.sor input.buton { height: 40px; padding: 0 16px; }

	#kategoriler { display: none; }
	#oyunDisi { padding: 0 !important; }
	.categoryList { padding: 4px; border-radius: 6px; }
	#catstitle h1, #catstitle h2 { font-size: 20px; }
	#catstitle.anasayfa h1 { font-size: 16px; }
	#search { display: none; }

	#categoryGames, #searchGames { padding: 4px 8px 8px; }
	#categoryGames ul, #searchGames ul, #otherGames ul { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px 10px; }

	div.gpo, div#adsQuare { display: block; width: 100%; min-width: 0; padding-left: 0; }
	div#adsQuare { margin-top: 12px; }
	div.gpo div.imgGame { width: 42%; max-width: 200px; }
	.imgGame img { width: 100%; max-width: 100%; }
	#gameInfo .gameFont { font-size: 22px; }
	.griBorder > table > tbody > tr > td { padding: 12px !important; }

	#copyright { border-radius: 8px 8px 0 0; }
	#copyright > tbody > tr > td, #copyright > tr > td { padding: 16px; }
	#copyright .hak, #copyright .link { float: none; }
	#copyright .link { margin-top: 14px; }
	#post-comment input#nick { width: 100%; }
}

@media (max-width: 380px) {
	#categoryGames ul, #searchGames ul, #otherGames ul { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
