/* Template Empiric - visual medieval (pergaminho + azul noturno + dourado) */
:root {
	--em-gold: #e8c16a;
	--em-gold-dark: #9c7a32;
	--em-navy: #16233d;
	--em-navy-2: #1f3050;
	--em-ink: #3b2410;
	--em-parch: #f4e7c9;
	--em-parch-2: #ead8b0;
	--em-red: #8e1b1b;
	--em-green: #3fa34d;
}

html, body {
	margin: 0;
	padding: 0;
}

body {
	background-color: #0c0f16;
	background-image:
		radial-gradient(ellipse at top, rgba(60, 80, 120, 0.25), transparent 60%),
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.55 0 0 0 0.06 0'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
	font-family: 'Alegreya Sans', Verdana, Tahoma, sans-serif;
	font-size: 14px;
	color: var(--em-ink);
	min-width: 1000px;
}

a { color: #7a3d0c; }
a:hover { color: var(--em-red); }

/* ---------------- Cabecalho ---------------- */
.em-header {
	position: relative;
	height: 300px;
	overflow: hidden;
	border-bottom: 3px solid var(--em-gold-dark);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}
.em-scene {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.em-brand {
	position: relative;
	z-index: 2;
	text-align: center;
	padding-top: 52px;
}
.em-logo {
	display: block;
	width: fit-content;
	margin: 0 auto;
	line-height: 1.1;
	font-family: 'Cinzel Decorative', 'Cinzel', serif;
	font-weight: 900;
	font-size: 62px;
	letter-spacing: 2px;
	text-decoration: none !important;
	background: linear-gradient(180deg, #fff3c4 0%, #f0c867 45%, #b07a26 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
	filter: drop-shadow(0 3px 0 #2a1806) drop-shadow(0 0 18px rgba(240, 190, 90, 0.35));
}
.em-status {
	display: inline-block;
	margin-top: 14px;
	padding: 8px 22px;
	font-family: 'Cinzel', serif;
	font-weight: 800;
	font-size: 20px;
	color: #fff3cf;
	background: rgba(20, 12, 4, 0.82);
	border: 2px solid var(--em-gold-dark);
	border-radius: 4px;
	box-shadow: 0 0 0 1px #000, 0 6px 18px rgba(0, 0, 0, 0.5);
}
.em-status.off { color: #ffb4b4; border-color: #7a2a2a; }
.em-subtitle {
	margin: 14px auto 0;
	max-width: 760px;
	font-family: 'Cinzel', serif;
	font-size: 16px;
	color: #f2e4c4;
	text-shadow: 0 2px 4px #000, 0 0 2px #000;
}

/* ---------------- Barra de navegacao ---------------- */
.em-nav {
	background: linear-gradient(180deg, var(--em-navy-2), var(--em-navy));
	border-bottom: 2px solid var(--em-gold-dark);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.em-nav-inner {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 10px;
}
.em-nav-inner a {
	font-family: 'Cinzel', serif;
	font-weight: 800;
	font-size: 15px;
	color: #f1dfb2;
	text-decoration: none;
	padding: 6px 16px;
	border-radius: 3px;
	transition: background 0.15s, color 0.15s;
}
.em-nav-inner a:hover { background: rgba(232, 193, 106, 0.15); color: #fff; }
.em-online-pill {
	margin-left: 14px;
	font-family: 'Alegreya Sans', sans-serif !important;
	font-size: 14px !important;
	background: #0b1220;
	border: 1px solid #3a4a6a;
	border-radius: 20px !important;
}
.em-online-pill .dot, .em-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	margin-right: 7px;
	background: #c33;
	vertical-align: middle;
}
.em-online-pill.on .dot, .em-dot.on { background: #4cd964; box-shadow: 0 0 6px #4cd964; }

/* ---------------- Colunas ---------------- */
.em-wrap {
	max-width: 1180px;
	margin: 22px auto 0;
	padding: 0 10px;
	display: flex;
	align-items: flex-start;
	gap: 16px;
}
.em-col { width: 232px; flex: 0 0 232px; }
.em-main { flex: 1 1 auto; min-width: 0; }

/* ---------------- Caixas laterais ---------------- */
.em-box {
	margin-bottom: 14px;
	background: var(--em-parch);
	border: 2px solid #1a2238;
	outline: 1px solid var(--em-gold-dark);
	outline-offset: -5px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}
.em-box-title {
	position: relative;
	margin: 0;
	padding: 9px 30px 9px 26px;
	font-family: 'Cinzel', serif;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #f3dfaa;
	background: linear-gradient(180deg, var(--em-navy-2), var(--em-navy));
	border-bottom: 2px solid var(--em-gold-dark);
	cursor: pointer;
	user-select: none;
}
.em-box-static .em-box-title { cursor: default; }
.em-box-title::before {
	content: '';
	position: absolute;
	left: 10px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	background: var(--em-gold);
	transform: rotate(45deg);
}
.em-caret {
	position: absolute;
	right: 12px;
	top: 50%;
	width: 7px;
	height: 7px;
	margin-top: -2px;
	border-left: 2px solid var(--em-gold);
	border-top: 2px solid var(--em-gold);
	transform: rotate(45deg);
	transition: transform 0.15s;
}
.em-box.closed .em-caret { transform: rotate(225deg); margin-top: -6px; }
.em-box.closed .em-box-body { display: none; }
.em-box-body {
	padding: 10px 12px;
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.03));
}

.em-links { list-style: none; margin: 0; padding: 0; }
.em-links li { border-bottom: 1px solid rgba(90, 60, 20, 0.15); }
.em-links li:last-child { border-bottom: 0; }
.em-links a {
	display: block;
	position: relative;
	padding: 6px 4px 6px 16px;
	color: #3d2a12;
	font-weight: 500;
	text-decoration: none;
}
.em-links a::before {
	content: '';
	position: absolute;
	left: 3px;
	top: 50%;
	width: 5px;
	height: 5px;
	margin-top: -2px;
	background: #b88a3a;
	transform: rotate(45deg);
}
.em-links a:hover, .em-links li.active a { color: var(--em-red); background: rgba(160, 110, 40, 0.12); }
.em-links li.active a { font-weight: 700; }
.em-links-small a { font-size: 13px; }
.em-admin { color: #b00000 !important; font-weight: 700 !important; }
.em-hello { margin: 0 0 6px; }

.em-login label {
	display: block;
	margin: 4px 0 2px;
	font-size: 12px;
	font-weight: 700;
	color: #5a3a14;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.em-login input {
	width: 100%;
	box-sizing: border-box;
	padding: 6px 8px;
	border: 1px solid #a88a55;
	border-radius: 3px;
	background: #fffaf0;
	font-size: 14px;
}
.em-login button {
	width: 100%;
	margin-top: 10px;
	padding: 7px;
	border: 1px solid #0f1a2e;
	border-radius: 3px;
	background: linear-gradient(180deg, #2f5fae, #1c3f7c);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.em-login button:hover { background: linear-gradient(180deg, #3a70c8, #234b92); }

.em-download, .em-premium {
	display: block;
	margin-bottom: 14px;
	padding: 12px;
	text-align: center;
	font-family: 'Cinzel', serif;
	font-weight: 800;
	font-size: 17px;
	text-decoration: none !important;
	color: #fff !important;
	border-radius: 4px;
	border: 2px solid #0d2a12;
	background: linear-gradient(180deg, #4bb553, #2a7c33);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
	text-shadow: 0 1px 2px #000;
}
.em-download:hover { background: linear-gradient(180deg, #57c55f, #2f8a39); }
.em-download-icon { margin-right: 6px; }
.em-premium {
	border-color: #4d3608;
	background: linear-gradient(180deg, #f2c75a, #b9861f);
	color: #2b1a02 !important;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.em-premium:hover { background: linear-gradient(180deg, #ffd56b, #c99428); }

.em-stats {
	display: grid;
	grid-template-columns: 1fr auto;
	margin: 0;
	row-gap: 6px;
}
.em-stats dt { color: #6a4a22; font-weight: 500; }
.em-stats dd { margin: 0; font-weight: 700; text-align: right; }
.em-stats dd.on { color: #23852f; }
.em-stats dd.off { color: #b00000; }

.em-center { text-align: center; }
.em-muted { color: #7a5a30; margin: 2px 0; }
.em-small { font-size: 12px; }
.em-clock {
	display: inline-block;
	margin: 6px 0;
	padding: 6px 14px;
	font-family: 'Courier New', monospace;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 2px;
	color: #f6e2a8;
	background: #1a1410;
	border: 2px solid var(--em-gold-dark);
	border-radius: 4px;
	box-shadow: inset 0 2px 6px #000;
}

.em-top { list-style: none; margin: 0; padding: 0; }
.em-top li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px solid rgba(90, 60, 20, 0.15);
}
.em-rank {
	flex: 0 0 26px;
	height: 26px;
	line-height: 26px;
	text-align: center;
	font-family: 'Cinzel', serif;
	font-weight: 800;
	color: #fff;
	background: var(--em-navy);
	border: 1px solid var(--em-gold-dark);
	border-radius: 50%;
}
.em-top li:first-child .em-rank { background: #b8871f; }
.em-top-info a { font-weight: 700; text-decoration: none; display: block; }
.em-top-info small { color: #7a5a30; }
.em-more { display: block; margin-top: 8px; text-align: center; font-weight: 700; }
.em-features { margin: 0; padding-left: 16px; }
.em-features li { margin-bottom: 6px; }

/* ---------------- Conteudo (pergaminho) ---------------- */
.em-parchment {
	position: relative;
	padding: 22px 24px;
	min-height: 600px;
	background-color: var(--em-parch);
	background-image:
		radial-gradient(ellipse at center, transparent 55%, rgba(120, 80, 30, 0.22) 100%),
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.32 0 0 0 0 0.15 0 0 0 0.09 0'/></filter><rect width='200' height='200' filter='url(%23p)'/></svg>");
	border: 2px solid #1a2238;
	outline: 1px solid var(--em-gold-dark);
	outline-offset: -6px;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
	overflow-x: auto;
}
.em-parchment h1, .em-parchment h2, .em-parchment h3 {
	font-family: 'Cinzel', serif;
	color: #5a1a10;
}

/* noticias do MyAAC */
.em-parchment .NewsHeadline, .em-parchment .NewsHeadlineBackground {
	border-radius: 2px;
}
.em-parchment .NewsHeadlineText, .em-parchment .NewsHeadlineDate {
	font-family: 'Cinzel', serif;
}

/* ---------------- Rodape ---------------- */
.em-footer {
	max-width: 1180px;
	margin: 20px auto 30px;
	padding: 14px 10px;
	text-align: center;
	color: #c9b48a;
	border-top: 1px solid #2a3550;
}
.em-footer a { color: var(--em-gold); }
.em-footer .em-muted { color: #8a7a5a; }

/* ---------------- Telas pequenas ---------------- */
@media (max-width: 1100px) {
	body { min-width: 0; }
	.em-wrap { flex-wrap: wrap; }
	.em-col { flex: 1 1 100%; width: auto; }
	.em-main { order: -1; flex-basis: 100%; }
	.em-logo { font-size: 40px; }
}

/* ---------------- Noticias ---------------- */
.em-news { margin-bottom: 26px; }
.em-news-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	background: linear-gradient(180deg, #7a1d16, #571009);
	border: 1px solid #2a0804;
	border-bottom: 2px solid var(--em-gold-dark);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.em-news-title {
	margin: 0 !important;
	font-family: 'Cinzel', serif;
	font-size: 19px !important;
	color: #fbe6b0 !important;
	text-shadow: 0 1px 2px #000;
}
.em-news-date { color: #f0c98a; font-size: 13px; white-space: nowrap; }
.em-news-body {
	padding: 14px 6px 4px;
	line-height: 1.55;
	font-size: 15px;
}
.em-news-body img { max-width: 100%; height: auto; }
.em-news-foot {
	display: flex;
	justify-content: space-between;
	padding: 4px 6px;
	font-size: 13px;
	color: #7a5a30;
	border-top: 1px dashed rgba(90, 60, 20, 0.3);
}

/* ---------------- Boas-vindas e guilds (plugins) ---------------- */
.em-section-title {
	margin: 0 0 12px !important;
	padding-bottom: 6px;
	font-family: 'Cinzel', serif;
	font-size: 20px !important;
	color: #5a1a10 !important;
	border-bottom: 2px solid rgba(156, 122, 50, 0.5);
}
.em-welcome, .em-guilds { margin-bottom: 24px; }
.em-motd {
	margin: 0 0 12px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.45);
	border-left: 4px solid var(--em-gold-dark);
	font-style: italic;
}
.em-welcome-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}
.em-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 8px;
	text-align: center;
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(156, 122, 50, 0.5);
	border-radius: 4px;
}
.em-card-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #8a6a3a;
}
.em-card-value { margin: 4px 0 2px; font-weight: 700; font-size: 16px; color: #5a1a10; text-decoration: none; }
.em-card-sub { font-size: 12px; color: #7a5a30; }
.em-empty { margin: 0; color: #7a5a30; font-style: italic; text-align: center; }
.em-guild-list { display: flex; flex-wrap: wrap; gap: 10px; }
.em-guild {
	flex: 1 1 150px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(156, 122, 50, 0.5);
	border-radius: 4px;
}
.em-guild-name { font-weight: 700; color: #5a1a10; margin-top: 4px; }
.em-guild-kills { font-size: 12px; color: #7a5a30; }
@media (max-width: 1300px) { .em-welcome-cards { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- Tabelas e formularios das paginas internas ---------------- */
.em-parchment .TableContainer { margin-bottom: 16px; }
.em-parchment .CaptionContainer {
	background: linear-gradient(180deg, var(--em-navy-2), var(--em-navy)) !important;
	border: 1px solid #0d1526;
	border-bottom: 2px solid var(--em-gold-dark);
}
.em-parchment .CaptionContainer span[class^="Caption"] { display: none !important; }
.em-parchment .CaptionContainer .Text {
	position: static !important;
	padding: 7px 12px !important;
	font-family: 'Cinzel', serif !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	letter-spacing: 0.5px;
	color: #f3dfaa !important;
	background: none !important;
}
.em-parchment .InnerTableContainer, .em-parchment .TableContentContainer {
	border-color: rgba(156, 122, 50, 0.55) !important;
}
.em-parchment .TableContent td, .em-parchment .InnerTableContainer td { font-size: 13px; }
.em-parchment .LabelV, .em-parchment .LabelH { color: #4a2c0e; }
.em-parchment input[type="text"], .em-parchment input[type="password"], .em-parchment input[type="email"],
.em-parchment select, .em-parchment textarea {
	padding: 4px 6px;
	border: 1px solid #a88a55;
	border-radius: 3px;
	background: #fffaf0;
	font-size: 13px;
}
.em-parchment input[type="submit"], .em-parchment button[type="submit"], .em-parchment input.button {
	padding: 6px 18px;
	border: 1px solid #0f1a2e;
	border-radius: 3px;
	background: linear-gradient(180deg, #2f5fae, #1c3f7c);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.em-parchment input[type="submit"]:hover, .em-parchment button[type="submit"]:hover { background: linear-gradient(180deg, #3a70c8, #234b92); }
.em-parchment table[bgcolor="#1F3050"] td, .em-parchment tr[bgcolor="#1F3050"] td, .em-parchment td[bgcolor="#1F3050"] { color: #f3dfaa; }
.em-parchment .CaptionContainer .CaptionInnerContainer { background: transparent !important; }
.em-parchment .LabelH, .em-parchment .LabelH td {
	background: var(--em-navy) !important;
	color: #f3dfaa !important;
}
.em-parchment .LabelH a { color: #f3dfaa !important; }
