/* ===========================================================
   gamemagazin — globális reset, form, alertbox
   =========================================================== */

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
}

body {
	font-family: "Inter", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #e8e8f0;
	background: #0d0d12;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

.clearfix::after { content: " "; display: table; clear: both; }

/* Alertbox */
.alertbox {
	padding: 16px 20px;
	border-radius: 4px;
	font-size: 15px;
	margin: 0 auto 24px;
	max-width: 800px;
	font-weight: 600;
	border: 2px solid;
}

.alertbox.success {
	background: rgba(57, 255, 20, 0.1);
	color: #7dff6b;
	border-color: #39ff14;
}

.alertbox.error {
	background: rgba(255, 0, 80, 0.1);
	color: #ff6b9d;
	border-color: #ff0050;
}

/* Form */
div.form-center {
	border: 2px solid #2a2a3e;
	margin: 30px auto;
	width: 100%;
	max-width: 600px;
	background: #1a1a2e;
	border-radius: 4px;
	padding: 0;
	box-shadow: 0 4px 0 #2a2a3e;
}

div.form-center form {
	padding: 30px;
}

div.form-center form h2 {
	text-align: center;
	margin-top: 0;
	color: #39ff14;
	font-family: "Press Start 2P", monospace;
	font-size: 14px;
	line-height: 1.6;
}

div.form-center label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
	color: #9a9ab0;
}

div.form-center input,
div.form-center textarea {
	width: 100%;
	padding: 10px 12px;
	margin: 4px 0 0;
	border: 1px solid #2a2a3e;
	border-radius: 4px;
	font-size: 15px;
	background: #0d0d12;
	color: #e8e8f0;
}

div.form-center input::placeholder,
div.form-center textarea::placeholder {
	color: #5a5a70;
}

div.form-center input:focus,
div.form-center textarea:focus {
	outline: none;
	border-color: #39ff14;
	box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.2);
}

div.form-center input[type=checkbox] {
	width: auto;
	display: inline-block;
	margin-right: 8px;
}

div.form-center input[type=submit] {
	cursor: pointer;
	background: #39ff14;
	color: #0d0d12;
	border: none;
	font-weight: 700;
	transition: background 0.2s, box-shadow 0.2s;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

div.form-center input[type=submit]:hover {
	background: #7dff6b;
	box-shadow: 0 0 16px rgba(57, 255, 20, 0.4);
}

div.form-center .form-row {
	margin-bottom: 16px;
}

@media screen and (max-width: 1024px) {
	div.form-center { max-width: 95%; }
	div.form-center form { padding: 20px; }
}

/* Egyszerű cikk-grid */
.grid3 {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 16px 0;
}

.grid3 > div {
	flex: 1 1 250px;
	background: #1a1a2e;
	border-left: 3px solid #39ff14;
	padding: 16px;
	transition: border-color 0.2s, box-shadow 0.2s;
	border: 1px solid #2a2a3e;
	border-left: 3px solid #39ff14;
}

.grid3 > div:hover {
	border-left-color: #ff00ff;
	box-shadow: 0 0 12px rgba(57, 255, 20, 0.15);
}

.grid3 .title,
.grid3 .title a {
	font-weight: 700;
	font-size: 16px;
	color: #e8e8f0;
	text-decoration: none;
	margin-bottom: 10px;
	display: block;
}

.grid3 .excerpt {
	font-size: 14px;
	color: #9a9ab0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	text-overflow: ellipsis;
	max-height: calc(1.4em * 3);
	line-height: 1.4;
}

@media screen and (max-width: 768px) {
	.grid3 { display: block; }
	.grid3 > div { margin-bottom: 12px; }
}
