/*
   Tiyan2 - v0.dev tasarımından uyarlanan tema
   Renk paleti v0'ın app/globals.css dosyasından alındı, gerçek
   site class'larına (all.css) uygulandı.
   ============================================================ */

:root {
	--ink: #28150d;
	--brown: #4a2817;
	--brown-dark: #210f09;
	--paper: #d8c28d;
	--paper-light: #f0dfb3;
	--gold: #d89a2b;
	--gold-light: #ffe39b;
	--red: #8d1513;
	--red-bright: #d32a1e;
	--line: #8f642b;
}

/* ---- Genel metin/link renkleri ---- */
body {
	color: var(--paper-light);
}

a {
	color: var(--gold);
}

a:hover {
	color: var(--gold-light);
}

/* ---- İçerik panelleri (anasayfa kutuları + login/register kutuları) ---- */
.content-bg,
.content-bg-bottom,
.inner-form-border,
.inner-form-box {
	background: linear-gradient(135deg, rgba(55, 28, 14, .94), rgba(20, 10, 6, .95)) !important;
	border: 2px solid var(--line) !important;
	box-shadow: 0 0 0 2px #281008, 0 8px 16px rgba(0, 0, 0, .6), inset 0 0 20px rgba(208, 131, 39, .12);
	color: var(--paper-light);
}

.content h2,
.inner-form-box h3 {
	background: linear-gradient(#f0deaf, #c6a96a) !important;
	color: #5e170d !important;
	border: 1px solid #70471f;
	text-shadow: 1px 1px #f7e9bb;
	padding: 6px 10px;
}

.content .inner-content,
.content-bg-bottom p,
#regLegend {
	color: var(--paper-light) !important;
}

.inner-form-box label {
	color: #fff1b3 !important;
}

/* ---- Sol/sağ sütun kutuları (.modul-box) ---- */
.modul-box,
.modul-box .modul-box-bg,
.modul-box .modul-box-bg-bottom,
.modul-box-2 .modul-box-bg {
	background: linear-gradient(135deg, rgba(55, 28, 14, .94), rgba(20, 10, 6, .95)) !important;
}

.modul-box h3 {
	background: linear-gradient(#f0deaf, #c6a96a) !important;
	color: #5e170d !important;
	text-shadow: 1px 1px #f7e9bb;
}

/* ---- İmparatorluk kutuları (Oyun Hakkında sayfası) ---- */
.empirebox-1,
.empirebox-2,
.empirebox-3 {
	background: linear-gradient(135deg, rgba(55, 28, 14, .94), rgba(20, 10, 6, .95)) !important;
	border: 2px solid var(--line) !important;
	box-shadow: 0 0 0 2px #281008, 0 8px 16px rgba(0, 0, 0, .6), inset 0 0 20px rgba(208, 131, 39, .12);
}

.empires-content h4 {
	background: none !important;
	color: var(--gold-light) !important;
	border-bottom: 1px solid var(--line);
	text-shadow: none;
}

.empires-content p {
	color: var(--paper-light);
}

/* ---- Sol menü butonları (.main-nav) ---- */
.main-nav li a {
	background: linear-gradient(#a32717, #5e100b 48%, #340b07) !important;
	color: var(--paper-light) !important;
	border: 1px solid var(--gold);
	box-shadow: inset 0 0 0 1px #43110a, 0 2px 4px #160703;
	text-shadow: 1px 1px #2a0d06;
	transition: filter .2s, transform .2s, box-shadow .2s;
}

.main-nav li a:hover,
.main-nav li a.active {
	filter: brightness(1.35);
	box-shadow: 0 0 14px rgba(226, 157, 42, .7), inset 0 0 10px rgba(255, 221, 118, .22);
}

/* ---- Sağ üst "Kayıt ol" banner (#regBtn) ---- */
#regBtn {
	background: linear-gradient(180deg, #bd2b16, #75110c 55%, #360906) !important;
	border: 2px solid var(--line);
	box-shadow: 0 0 0 2px #301108, 0 0 20px rgba(0, 0, 0, .8), inset 0 0 18px rgba(255, 126, 31, .18);
}

#regBtn a#toReg,
#regSteps a {
	color: var(--gold-light) !important;
	text-shadow: 2px 2px #3b0e07;
}

/* ---- Giriş formu (sağ kolon) + login/register sayfası form alanları ---- */
.form-login input[type="text"],
.form-login input[type="password"],
#login input[type="text"],
#login input[type="password"],
#register input[type="text"],
#register input[type="password"],
#register input[type="email"] {
	background: linear-gradient(180deg, #f1dfb2, #c9a96c) !important;
	color: #3d1d0e !important;
	border: 1px solid var(--line) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 239, 183, .65), 0 0 8px rgba(0, 0, 0, .3);
}

.btn-login,
.btn-big {
	background: linear-gradient(180deg, #b52a18, #71110c 55%, #370806) !important;
	color: var(--gold-light) !important;
	border: 1px solid var(--gold) !important;
	box-shadow: inset 0 0 0 1px #50120b, 0 2px 5px #120302;
	text-shadow: none;
	transition: filter .2s, transform .2s;
}

.btn-login:hover,
.btn-big:hover {
	filter: brightness(1.2);
	transform: translateY(-1px);
}

/* ---- İstatistikler / sıralama satırları ---- */
.stat-line,
.form-score .highscore-player li {
	color: var(--paper-light) !important;
	border-bottom: 1px solid rgba(197, 151, 74, .3) !important;
}

.form-score .highscore-player strong,
.stat-line strong {
	color: var(--gold-light) !important;
}

/* ---- Üst iki kutu (Hoş Geldiniz / Tanıtım) ---- */
.two-boxes,
.two-boxes .two-boxes-top {
	background: transparent !important;
}

.two-boxes .two-boxes-bottom {
	background: linear-gradient(135deg, rgba(55, 28, 14, .94), rgba(20, 10, 6, .95)) !important;
	border: 2px solid var(--line);
	box-shadow: 0 0 0 2px #281008, 0 8px 16px rgba(0, 0, 0, .6), inset 0 0 20px rgba(208, 131, 39, .12);
}

.box h2,
.box-right h2 {
	background: linear-gradient(#f0deaf, #c6a96a) !important;
	color: #5e170d !important;
	border: 1px solid #70471f;
	text-shadow: 1px 1px #f7e9bb;
	padding: 6px 10px;
}

.box p,
.box-right p {
	color: var(--paper-light) !important;
}

/* ---- Haberler kutusu ---- */
.news-box {
	background: rgba(20, 8, 4, .55) !important;
	border: 1px solid var(--line);
}

.news-box h4,
.news-box h5 a,
.news-box ul li a {
	color: var(--gold-light) !important;
}

.news-box p,
.news-box ul li,
.news-date {
	color: var(--paper-light) !important;
}

/* ---- Başlık/menü elmas (◆) işaretleri - v0'daki panel-title stiline uygun ---- */
.content h2::before,
.box h2::before,
.box-right h2::before,
.inner-form-box h3::before,
.modul-box h3::before {
	content: '◆';
	margin-right: 6px;
	color: var(--red-bright);
	font-size: 11px;
}

.main-nav li a::before {
	content: '◆';
	margin-right: 6px;
	color: var(--red-bright);
	font-size: 9px;
}

/* ---- "Kayıt ol" banner'ındaki indirme oku kutusu (v0'daki download-arrow) ---- */
#regBtn {
	position: relative;
}

#regBtn::before {
	content: '↓';
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border: 2px solid #e3bd6a;
	background: linear-gradient(#fff3c5, #b2904c);
	color: #5a180d;
	font-size: 38px;
	font-weight: 900;
	line-height: 1;
	box-shadow: 0 0 10px #d98c2a;
}

/* ---- Giriş yapmış kullanıcı menüsü (#userBox içindeki butonlar) ---- */
.nav-box-btn {
	background: linear-gradient(#a32717, #5e100b 48%, #340b07) !important;
	background-image: none !important;
	color: var(--paper-light) !important;
	border: 1px solid var(--gold);
	box-shadow: inset 0 0 0 1px #43110a, 0 2px 4px #160703;
	text-shadow: 1px 1px #2a0d06;
}

.nav-box-btn:hover {
	filter: brightness(1.35);
}

/* ---- İstatistik / sıralama sayıları ---- */
.offset {
	color: var(--gold-light) !important;
}

/* ---- Eski şablonun kutu kapak parçaları (boxes-top/middle/bottom) v0.dev
   tasarımında yok - v0'da her panel kendi başına, köşelerinde küçük ✦
   yıldız işaretiyle duruyor (.ornate-panel:before/:after). Kapakları
   kaldırıp aynı köşe-yıldız stilini ekliyoruz. ---- */
.boxes-top,
.boxes-middle,
.boxes-bottom {
	display: none !important;
}

.modul-box,
.content-bg-bottom,
.two-boxes .two-boxes-bottom,
.inner-form-box {
	position: relative;
}

.modul-box::before,
.content-bg-bottom::before,
.two-boxes .two-boxes-bottom::before,
.inner-form-box::before,
.modul-box::after,
.content-bg-bottom::after,
.two-boxes .two-boxes-bottom::after,
.inner-form-box::after {
	content: '✦';
	position: absolute;
	color: #c6933e;
	font-size: 13px;
	pointer-events: none;
}

.modul-box::before,
.content-bg-bottom::before,
.two-boxes .two-boxes-bottom::before,
.inner-form-box::before {
	top: 2px;
	left: 4px;
}

.modul-box::after,
.content-bg-bottom::after,
.two-boxes .two-boxes-bottom::after,
.inner-form-box::after {
	right: 4px;
	bottom: 1px;
}

/* ============================================================
   ANASAYFA - v0.dev panel düzeni (home.blade.php'ye özel class'lar)
   ============================================================ */

.download-banner {
	display: flex;
	align-items: center;
	gap: 16px;
	position: relative;
	margin: 0 auto 14px;
	max-width: 585px;
	min-height: 74px;
	padding: 10px 24px 10px 90px;
	color: var(--gold-light);
	background: linear-gradient(180deg, #bd2b16, #75110c 55%, #360906);
	border: 2px solid var(--line);
	box-shadow: 0 0 0 2px #301108, 0 0 20px rgba(0, 0, 0, .8), inset 0 0 18px rgba(255, 126, 31, .18);
	text-align: left;
	text-decoration: none !important;
}

.download-banner-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border: 2px solid #e3bd6a;
	background: linear-gradient(#fff3c5, #b2904c);
	color: #5a180d;
	font-size: 34px;
	font-weight: 900;
	box-shadow: 0 0 10px #d98c2a;
}

.download-banner strong {
	display: block;
	font-size: 19px;
	text-shadow: 2px 2px #3b0e07;
}

.download-banner small {
	display: block;
	font-size: 12px;
	color: #ffd98c;
}

/* #download h3 (all.css) eski açık tema için koyu kahve yazı + açık emboss
   gölgesi kullanıyordu (#4A1E00 üzerine #ECD4BA); koyu panelde metin
   neredeyse görünmez kalıp sadece 1px'lik açık gölgesi göründüğü için
   "hayalet/çizgili" bir görünüm oluşuyordu. Koyu temaya göre tersine çeviriyoruz. */
#download h3 {
	color: var(--gold-light) !important;
	text-shadow: 1px 1px #2a0d06 !important;
}

.classic-columns {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 220px !important;
	gap: 16px !important;
	align-items: start;
	width: 1000px !important;
	margin: 14px auto 0 !important;
}

.left-column,
.right-column,
.main-column {
	display: grid;
	gap: 12px;
}

.ornate-panel {
	position: relative;
	padding: 16px;
	background: linear-gradient(135deg, rgba(55, 28, 14, .94), rgba(20, 10, 6, .95));
	box-shadow: 0 8px 16px rgba(0, 0, 0, .6), inset 0 0 20px rgba(208, 131, 39, .12);
	color: #e8d39c;
	overflow: visible;
}

/*
 * Görsel çerçeve (cerceve.png): cerceve.png'nin kendi kenarında ~22-40px
 * şeffaf boşluk var (piksel analiziyle ölçüldü) - görselin altın bandı
 * PNG kenarından içeride başlıyor. Bunu telafi etmek için ::before hafif
 * negatif inset ile panelin dışına taşırılıyor; böylece PNG'nin şeffaf
 * kenar payı panelin GÖRÜNMEYEN dış kısmına düşüyor ve altın bant tam
 * panelin gerçek kenarına oturuyor. .ornate-panel'in kendi eski border/
 * dış-halka box-shadow'u kaldırıldı (görsel çerçeveyle çakışıyordu).
 * Eski ✦ köşe süsleri de bu görsel çerçeveyle çakışmasın diye kapatıldı.
 */
.ornate-panel::before {
	content: "";
	position: absolute;
	top: -12px;
	right: -6px;
	bottom: -12px;
	left: -6px;
	border: 26px solid transparent;
	border-image-source: url('/themes/tiyan2/public/cerceve.png');
	border-image-slice: 90;
	border-image-repeat: stretch;
	border-image-outset: 0;
	pointer-events: none;
	z-index: 1;
}

.ornate-panel::after {
	content: none;
}

.panel-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 6px 8px;
	color: #5e170d;
	font-size: 15px;
	font-weight: 900;
	background: linear-gradient(#f0deaf, #c6a96a);
	border: 1px solid #70471f;
	box-shadow: inset 0 0 0 1px #fff0bd;
	text-shadow: 1px 1px #f7e9bb;
}

.panel-title::before {
	content: '◆';
	color: var(--red);
	font-size: 11px;
}

.ornate-panel p {
	margin: 0 0 12px;
	font-size: 12px;
	line-height: 1.45;
	color: #e5d3a5;
}

.ornate-panel small {
	color: #f2d071;
	font-size: 11px;
}

.ornate-panel h3 {
	margin: 9px 0 5px;
	color: var(--gold-light);
	font-size: 15px;
}

.side-menu-links {
	display: grid;
	gap: 4px;
}

.side-menu-links a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 7px;
	color: var(--gold-light);
	font-size: 12px;
	font-weight: 800;
	text-shadow: 1px 1px #220b05;
	border: 1px solid transparent;
	text-decoration: none;
	transition: color .2s, background .2s, border-color .2s, transform .2s;
}

.side-menu-links a::before {
	content: '◆';
	color: var(--red-bright);
	font-size: 8px;
}

.side-menu-links a:hover,
.side-menu-links a.active {
	color: #fff1b3;
	background: linear-gradient(90deg, rgba(139, 32, 16, .7), rgba(65, 17, 8, .2));
	border-color: #a87935;
	transform: translateX(3px);
}

.intro-video iframe {
	display: block;
	border: 1px solid var(--line);
}

.news-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-top: 1px solid rgba(197, 151, 74, .25);
}

.news-row:first-child {
	border-top: none;
}

.classic-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 14px;
	color: var(--gold-light);
	font-weight: 800;
	font-size: 12px;
	background: linear-gradient(180deg, #b52a18, #71110c 55%, #370806);
	border: 1px solid var(--gold);
	box-shadow: inset 0 0 0 1px #50120b, 0 2px 5px #120302;
	text-decoration: none !important;
	cursor: pointer;
	transition: filter .2s, transform .2s;
}

.classic-button:hover {
	filter: brightness(1.25);
	transform: translateY(-1px);
}

.classic-button.large {
	display: flex;
	width: 100%;
	justify-content: center;
	padding: 10px;
}

.classic-button.medium {
	display: flex;
	width: 95%;
	margin: 0 auto;
	justify-content: center;
	padding: 8px 6px;
	font-size: 11px;
	gap: 4px;
}

.classic-text-link {
	display: inline-block;
	margin-top: 6px;
	color: var(--gold);
	font-size: 11px;
}

/* ---- Giriş paneli formu ---- */
.login-panel form {
	display: grid;
	gap: 6px;
}

.login-panel label {
	font-size: 11px;
	color: #d9bd80;
}

.login-panel input {
	width: 98.4%;
	height: 28px;
	padding: 0 6px;
	color: #392016;
	background: linear-gradient(180deg, #f1dfb2, #c9a96c);
	border: 1px solid var(--line);
	box-shadow: inset 0 0 0 1px rgba(255, 239, 183, .65);
}

.login-panel .classic-text-link {
	text-align: center;
}

/* ---- İstatistikler ---- */
.stat-line {
	display: flex;
	justify-content: space-between;
	padding: 6px 1px;
	color: #e2ca91;
	font-size: 11px;
	border-bottom: 1px solid rgba(197, 151, 74, .3);
}

.stat-line strong {
	color: #f2d071;
}

/* ---- Top 10 Oyuncu ---- */
.top-players-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.top-players-list li {
	padding: 5px 2px;
	font-size: 12px;
	border-bottom: 1px solid rgba(197, 151, 74, .2);
}

.top-players-list strong {
	color: var(--gold-light);
	margin-right: 4px;
}

.top-players-list .empire1 { color: #e3b04a; }
.top-players-list .empire2 { color: #7fb8e0; }
.top-players-list .empire3 { color: #e08a8a; }

@media (max-width: 980px) {
	.classic-columns {
		grid-template-columns: 1fr;
		width: calc(100% - 20px);
	}
}

/* ---- Footer: sabit (fixed) alt bar - logo + menü + telif ---- */
.footer-wrapper {
	position: fixed !important;
	bottom: 0;
	left: 0;
	right: 0;
	height: auto !important;
	margin: 0 !important;
	float: none !important;
	background: linear-gradient(180deg, rgba(55, 28, 14, .97), rgba(20, 10, 6, .99)) !important;
	border-top: 2px solid var(--line);
	box-shadow: 0 -2px 0 2px #281008, 0 -8px 20px rgba(0, 0, 0, .6);
	z-index: 100;
}

.footer-wrapper::before {
	content: '';
	position: absolute;
	top: -3px;
	left: 0;
	right: 0;
	height: 3px;
	background: repeating-linear-gradient(90deg, var(--line) 0px, var(--gold) 2px, var(--line) 4px, var(--brown-dark) 7px) !important;
	display: block !important;
	box-shadow: 0 -2px 4px rgba(0, 0, 0, .5);
}

#footer {
	width: 100%;
	max-width: 930px;
	margin: 0 auto !important;
	padding: 14px 16px 12px !important;
	overflow: visible !important;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 22px;
}

.footer-logo {
	margin: 0 !important;
	max-height: 34px !important;
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .65));
}

#footer .footer-links {
	background: none !important;
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 4px 0;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	height: auto !important;
	line-height: normal !important;
}

#footer .footer-links li {
	background: none !important;
	display: flex !important;
	align-items: center;
	padding: 0 !important;
}

#footer .footer-links li + li::before {
	content: '◆';
	color: var(--red-bright);
	font-size: 7px;
	margin: 0 12px 0 0;
}

#footer .footer-links a {
	color: var(--gold-light) !important;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none !important;
	text-shadow: 1px 1px #220b05;
	transition: color .2s;
}

#footer .footer-links a:hover {
	color: #fff1b3 !important;
}

.footer-copyright {
	color: #d8b876 !important;
	font-size: 11px !important;
	line-height: 1.5 !important;
	margin: 8px 0 0 !important;
	letter-spacing: .3px;
	text-align: center;
	width: 100%;
	padding-top: 8px;
	border-top: 1px solid rgba(197, 151, 74, .25);
}

.container-wrapper {
	padding-bottom: 155px !important;
}

/* ---- İndir sayfası: indirme butonları + sistem gereksinimleri ---- */
.download-button-1,
.download-button-2 {
	background: linear-gradient(180deg, #b52a18, #71110c 55%, #370806) !important;
	border: 1px solid var(--gold);
	box-shadow: inset 0 0 0 1px #50120b, 0 2px 5px #120302;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 220px !important;
	height: 50px !important;
	text-align: center;
	transition: filter .2s, transform .2s;
}

.download-button-1:hover,
.download-button-2:hover {
	filter: brightness(1.25);
	transform: translateY(-1px);
}

.download-button-1 span,
.download-button-2 span {
	display: block !important;
	color: var(--gold-light);
	font-weight: 800;
	font-size: 13px;
	text-shadow: 1px 1px #220b05;
}

.download-box-1,
.download-box-2 {
	background: linear-gradient(135deg, rgba(55, 28, 14, .94), rgba(20, 10, 6, .95));
	border: 2px solid var(--line);
	box-shadow: 0 0 0 2px #281008, 0 8px 16px rgba(0, 0, 0, .6), inset 0 0 20px rgba(208, 131, 39, .12);
	padding: 12px 16px;
	margin: 0 0 15px;
	max-width: 460px;
}

.download-inner-content h4 {
	background: none !important;
	color: var(--gold-light) !important;
	height: auto !important;
	width: auto !important;
	margin: 0 0 8px !important;
	font-size: 13px;
	border-bottom: 1px solid var(--line);
	padding-bottom: 6px;
}

.download-box-1 table,
.download-box-2 table {
	width: 100%;
	border-collapse: collapse;
}

.download-box-1 td,
.download-box-2 td {
	padding: 5px 4px;
	font-size: 11px;
	color: var(--paper-light);
	border-bottom: 1px solid rgba(197, 151, 74, .18);
	float: none !important;
}

.download-box-1 tr.last td,
.download-box-2 tr.last td {
	border-bottom: none;
}

.download-box-1 td.left,
.download-box-2 td.left {
	color: var(--gold-light);
	font-weight: 700;
	width: 40%;
}

/* ---- Profil sayfası ---- */
/* .ornate-card: tek altın çerçeveyi taşıyan DIŞ kapsayıcı (profile-card).
   İçindeki .ornate-panel-inner bölümler (Hesap Bilgileri/Karakterler/
   İşlemler) kendi border-image çerçevesini almaz - sade kalır, aralarında
   sadece ince bir alt çizgi vardır. Böylece sayfada tek bir çerçeve olur,
   3 ayrı iç içe kutu görünmez. */
.ornate-panel-inner {
	color: #e8d39c;
}

.ornate-panel-inner:not(:last-child) {
	border-bottom: 1px solid rgba(212, 175, 55, .2);
	padding-bottom: 15px;
}

.profile-panel {
	margin-bottom: 15px;
}

.profile-panel .stat-line {
	border-bottom: 1px solid rgba(197, 151, 74, .18);
}

.profile-panel .stat-line:last-child {
	border-bottom: none;
}

.profile-status-ok {
	color: #6bcf7f;
}

.profile-status-bad {
	color: #e08a8a;
}

.profile-character-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 160px;
	overflow-y: auto;
}

.profile-character-list li {
	padding: 5px 2px;
	font-size: 12px;
	color: var(--paper-light);
	border-bottom: 1px solid rgba(197, 151, 74, .18);
}

.profile-character-list li:last-child {
	border-bottom: none;
}

.profile-character-list strong {
	color: var(--gold-light);
}

.profile-char-job {
	color: #d89a2b;
}

.profile-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}