/* BlockRivals tanitim + yasal web sitesi - tek stil dosyasi.
   Palet kaynagi: ui/theme/BlockTheme.gd (v4) - oyunun gercek renkleri.
   Framework yok, harici istek yok, sistem font yigini. */

:root {
	--bg: #0B1550;
	--bg-darker: #070D38;
	--panel: #131C5E;
	--panel-light: #1B2778;
	--board-bg: #0E1747;
	--accent-blue: #2F6BFF;
	--accent-purple: #8F3DFF;
	--accent-orange: #FF7A21;
	--gold: #FFD23F;
	--danger: #FF3B3B;
	--success: #18D65F;
	--text: #FFFFFF;
	--text-muted: #B9C0F0;
	--link: #8FB4FF;
	--border: rgba(79, 118, 255, 0.34);
	--radius: 14px;
	--max-width: 960px;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	font-size: 16px;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--link);
	text-decoration: underline;
	text-underline-offset: 2px;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--gold);
	color: var(--bg-darker);
	padding: 0.6em 1em;
	z-index: 100;
	border-radius: 0 0 8px 0;
}

.skip-link:focus {
	left: 0;
}

/* --- ust bilgi / navigasyon ------------------------------------------- */

.site-header {
	background: var(--bg-darker);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0.9rem 1.1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--text);
	margin-right: auto;
}

.brand:hover,
.brand:focus {
	color: var(--gold);
}

.brand-logo {
	width: 36px;
	height: 36px;
	object-fit: contain;
	border-radius: 8px;
	flex-shrink: 0;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	font-size: 0.95rem;
}

.site-nav a {
	color: var(--text-muted);
	text-decoration: none;
	padding: 0.25rem 0.1rem;
	border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus {
	color: var(--text);
	border-bottom-color: var(--accent-blue);
}

.site-nav a[aria-current="page"] {
	color: var(--text);
	border-bottom-color: var(--accent-orange);
}

.lang-switch {
	font-size: 0.9rem;
	white-space: nowrap;
	color: var(--text-muted);
}

.lang-switch a {
	color: var(--text-muted);
	text-decoration: none;
	font-weight: 600;
}

.lang-switch strong {
	color: var(--text);
}

.lang-switch a:hover,
.lang-switch a:focus {
	color: var(--gold);
}

/* --- govde -------------------------------------------------------------- */

main {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 1.75rem 1.1rem 3rem;
}

h1 {
	font-size: 1.7rem;
	line-height: 1.25;
	margin: 0 0 0.4rem;
}

h2 {
	font-size: 1.25rem;
	margin: 2rem 0 0.6rem;
	color: var(--text);
	border-top: 1px solid var(--border);
	padding-top: 1.2rem;
}

section > h2:first-child,
h1 + h2 {
	border-top: none;
	padding-top: 0;
}

h3 {
	font-size: 1.05rem;
	margin: 1.2rem 0 0.4rem;
	color: var(--gold);
}

p {
	margin: 0.6rem 0;
}

.subtitle {
	color: var(--text-muted);
	font-size: 1.05rem;
	margin-bottom: 1.4rem;
}

.effective-date {
	color: var(--text-muted);
	font-size: 0.9rem;
}

ul,
ol {
	padding-left: 1.4rem;
}

li {
	margin: 0.3rem 0;
}

code {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 0.1em 0.4em;
	font-size: 0.9em;
	word-break: break-word;
}

/* --- kartlar / paneller -------------------------------------------------- */

.panel {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.2rem 1.3rem;
	margin: 1.2rem 0;
}

.panel-light {
	background: var(--panel-light);
}

.notice {
	background: var(--board-bg);
	border: 1px solid var(--accent-orange);
	border-left-width: 4px;
	border-radius: 10px;
	padding: 0.9rem 1.1rem;
	margin: 1.2rem 0 1.6rem;
	font-size: 0.95rem;
}

.notice strong {
	color: var(--accent-orange);
}

.notice-info {
	border-color: var(--accent-blue);
}

.notice-info strong {
	color: var(--link);
}

/* --- ana sayfa hero ------------------------------------------------------ */

.hero {
	text-align: center;
	padding: 1.5rem 0 0.5rem;
}

.hero-logo {
	width: 96px;
	height: 96px;
	border-radius: 20px;
	margin-bottom: 1rem;
}

.hero h1 {
	font-size: 2.1rem;
}

.hero .tagline {
	color: var(--gold);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.85rem;
	margin: 0 0 0.6rem;
}

.hero p {
	color: var(--text-muted);
	font-size: 1.05rem;
	max-width: 60ch;
	margin: 0.8rem auto 1.6rem;
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	justify-content: center;
	margin-bottom: 1rem;
}

.btn {
	display: inline-block;
	padding: 0.75rem 1.4rem;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	font-size: 0.98rem;
	border: 1px solid transparent;
}

.btn-primary {
	background: var(--accent-blue);
	color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
	background: #4a7dff;
	color: #fff;
}

.btn-secondary {
	background: transparent;
	border-color: var(--border);
	color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus {
	border-color: var(--accent-blue);
	color: var(--text);
}

.feature-graphic {
	display: block;
	width: 100%;
	max-width: 640px;
	margin: 1.6rem auto 0;
	border-radius: var(--radius);
	border: 1px solid var(--border);
}

/* --- ozellikler / ekran goruntusu galerisi -------------------------------- */

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.card {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.1rem 1.2rem;
}

.card h3 {
	margin-top: 0;
}

.card p {
	color: var(--text-muted);
	font-size: 0.95rem;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.gallery figure {
	margin: 0;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

.gallery img {
	display: block;
	width: 100%;
	height: auto;
}

.gallery figcaption {
	padding: 0.6rem 0.8rem 0.8rem;
	font-size: 0.85rem;
	color: var(--text-muted);
	text-align: center;
}

.link-list {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.6rem;
}

.link-list a {
	display: block;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 0.8rem 1rem;
	text-decoration: none;
	color: var(--text);
}

.link-list a:hover,
.link-list a:focus {
	border-color: var(--accent-blue);
	color: var(--gold);
}

/* --- tablolar ------------------------------------------------------------- */

.table-wrap {
	overflow-x: auto;
	margin: 1.2rem 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

table {
	border-collapse: collapse;
	width: 100%;
	min-width: 640px;
	font-size: 0.92rem;
}

caption {
	caption-side: top;
	text-align: left;
	padding: 0.7rem 0.9rem 0;
	color: var(--text-muted);
	font-size: 0.88rem;
}

th,
td {
	text-align: left;
	padding: 0.65rem 0.8rem;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}

thead th {
	background: var(--panel-light);
	color: var(--text);
}

tbody tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.03);
}

/* --- e-posta talep kutusu (hesap silme) ------------------------------------ */

.fallback-box {
	background: var(--board-bg);
	border: 1px dashed var(--border);
	border-radius: 10px;
	padding: 1rem 1.1rem;
	margin-top: 1.1rem;
	font-size: 0.95rem;
}

.mail-btn {
	display: inline-block;
	background: var(--accent-blue);
	color: #fff;
	border-radius: 999px;
	padding: 0.75rem 1.6rem;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	margin-top: 0.6rem;
}

.mail-btn:hover,
.mail-btn:focus {
	background: #4a7dff;
	color: #fff;
}

/* --- placeholder isaretleyici --------------------------------------------- */

.fill-me {
	background: rgba(255, 122, 33, 0.18);
	border: 1px dashed var(--accent-orange);
	border-radius: 4px;
	padding: 0.05em 0.4em;
	font-family: "Courier New", monospace;
	font-size: 0.92em;
	color: var(--gold);
}

/* --- alt bilgi -------------------------------------------------------------- */

.site-footer {
	background: var(--bg-darker);
	border-top: 1px solid var(--border);
	padding: 1.6rem 1.1rem 2.2rem;
	margin-top: 2rem;
}

.footer-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	color: var(--text-muted);
	font-size: 0.88rem;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	margin-bottom: 0.8rem;
}

.footer-links a {
	color: var(--text-muted);
}

.footer-fine {
	color: rgba(185, 192, 240, 0.7);
	font-size: 0.82rem;
	margin-top: 0.6rem;
}

@media (max-width: 480px) {
	h1 {
		font-size: 1.4rem;
	}

	.hero h1 {
		font-size: 1.7rem;
	}

	.header-inner {
		padding: 0.75rem 0.9rem;
	}

	main {
		padding: 1.3rem 0.9rem 2.4rem;
	}
}
