@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300&display=swap');

/* ══════════════════════════════════════════════════════
   CSS VARIABLES
══════════════════════════════════════════════════════ */
:root {
	--primary:     #1a1c22;
	--secondary:   #13151a;
	--surface:     #1f2229;
	--surface2:    #252830;
	--border:      #0d0e11;
	--border-soft: rgba(255,255,255,0.06);

	--gold:        #c8962a;
	--gold-light:  #e8b84b;
	--gold-dim:    #7a5a18;

	--font-color:  #9ba2b1;
	--font-bright: #d4dae8;
	--font-muted:  #5a6070;

	--anchor:       #c8962a;
	--anchor-hover: #f0c060;

	--bg-danger:      #2d0a0a;
	--color-danger:   #e07070;
	--border-danger:  #4a1010;
	--bg-warning:     #2d1a00;
	--color-warning:  #e0a030;
	--border-warning: #4a2e00;
	--bg-info:        #001f3a;
	--color-info:     #4aabdf;
	--border-info:    #003560;
	--bg-success:     #002d10;
	--color-success:  #3dc870;
	--border-success: #004818;
	--bg-default:     rgba(0,0,0,0.4);
	--color-default:  #a08848;
	--border-default: #000;

	--shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
	--shadow-md: 0 4px 20px rgba(0,0,0,0.7);
}

/* ══════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	font-family: 'Crimson Pro', Georgia, serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--font-color);
	background: var(--secondary);
	background-image:
		radial-gradient(ellipse at 20% 0%,   rgba(200,150,42,0.04) 0%, transparent 50%),
		radial-gradient(ellipse at 80% 100%,  rgba(200,150,42,0.03) 0%, transparent 50%);
	min-height: 100vh;
}

body, ul { margin: 0; padding: 0; }
li { list-style: none; }
a { text-decoration: none; color: var(--anchor); }
a:hover { color: var(--anchor-hover); }
a:hover, button:hover, input[type="submit"]:hover { cursor: pointer; }
* { transition-duration: 0.2s; }
*:hover { transition-duration: 0s; }

td { padding: 10px 8px; }
.pull-left  { float: left; }
.pull-right { float: right; }
.centralizeContent { text-align: center; }
.preventCollapse { overflow: hidden; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-100 { width: 100%; }

/* ══════════════════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--secondary); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ══════════════════════════════════════════════════════
   MAIN CONTAINER
══════════════════════════════════════════════════════ */
.main {
	width: 100%;
	max-width: 1260px;
	margin: 0 auto;
	padding: 0 0 2rem;
	position: relative;
	z-index: 1;
}

/* ══════════════════════════════════════════════════════
   BANNER
══════════════════════════════════════════════════════ */
.banner {
	background: url('../img/header.png') center/cover no-repeat;
	height: 220px;
	position: relative;
	border-bottom: 2px solid var(--gold-dim);
	box-shadow: 0 4px 30px rgba(0,0,0,0.8);
}
.banner::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 40%, rgba(19,21,26,0.55) 100%);
}

/* ══════════════════════════════════════════════════════
   INFO BAR (below banner)
══════════════════════════════════════════════════════ */
.infoBar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--primary);
	border-bottom: 1px solid var(--border-soft);
	padding: 0 14px;
	height: 42px;
	gap: 12px;
	box-shadow: var(--shadow-sm);
}

.infoBar-left,
.infoBar-right {
	display: flex;
	align-items: center;
	gap: 6px;
}

.infoBar-block {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 0 10px;
	height: 42px;
	border-right: 1px solid var(--border-soft);
	font-family: 'Cinzel', serif;
	font-size: 0.7em;
	letter-spacing: 0.05em;
	color: var(--font-muted);
	white-space: nowrap;
}
.infoBar-block:last-child { border-right: none; }
.infoBar-right .infoBar-block:first-child { border-left: 1px solid var(--border-soft); }

.infoBar-label { color: var(--font-muted); }

#serverSaveTimer {
	color: #5390a8;
	font-weight: 700;
	font-size: 1.05em;
	letter-spacing: 0.08em;
}

/* Socials */
.infoBar-socials { gap: 4px; }
.infoBar-socials a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 8px;
	border-radius: 3px;
	font-family: 'Cinzel', serif;
	font-size: 0.68em;
	letter-spacing: 0.06em;
	color: var(--font-muted);
	text-transform: uppercase;
}
.infoBar-socials a:hover { color: var(--gold-light); background: rgba(200,150,42,0.08); }
.infoBar-socials a .fa-comments { color: #5865f2; }
.infoBar-socials a:hover .fa-comments { color: #7c84f5; }
.infoBar-socials a .fa-facebook  { color: #1877f2; }
.infoBar-socials a:hover .fa-facebook { color: #4da3ff; }
.infoBar-socials a .fa-instagram { color: #e1306c; }
.infoBar-socials a:hover .fa-instagram { color: #ff6699; }

/* Server status */
.status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}
.status-dot.online  { background: #3dc870; box-shadow: 0 0 6px #3dc870; }
.status-dot.offline { background: #e07070; box-shadow: 0 0 6px #e07070; }

.status-text.online  { color: #3dc870; }
.status-text.offline { color: #e07070; }
.status-text.online a {
	color: #3dc870;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.status-text.online a:hover { color: #80ef80; }

/* Auth links in infoBar */
.infoBar-auth { gap: 2px; }
.infoBar-auth a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 3px;
	font-family: 'Cinzel', serif;
	font-size: 0.68em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--font-muted);
}
.infoBar-auth a:hover { color: var(--gold-light); background: rgba(200,150,42,0.08); }

/* ══════════════════════════════════════════════════════
   3-COLUMN LAYOUT
══════════════════════════════════════════════════════ */
.threeColLayout {
	display: flex;
	gap: 12px;
	padding: 12px 0 0;
	align-items: flex-start;
}
.leftPane   { width: 195px; flex-shrink: 0; }
.centerPane { flex: 1; min-width: 0; overflow: hidden; }
.rightPane  { width: 230px; flex-shrink: 0; min-width: 0; }

/* ══════════════════════════════════════════════════════
   SIDE NAV
══════════════════════════════════════════════════════ */
.sideNav {
	background: var(--primary);
	border: 1px solid var(--border-soft);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: var(--shadow-md);
}
.sideNav ul { margin: 0; padding: 0; }

/* Download button — top of sidenav */
.btn-download {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 12px 10px 0;
	padding: 10px;
	background: linear-gradient(135deg, #1a3a1a, #0d200d);
	border: 1px solid #2a5a2a;
	border-radius: 4px;
	color: #5ecf5e !important;
	font-family: 'Cinzel', serif;
	font-size: 0.74em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
	text-align: center;
}
.btn-download:hover {
	background: linear-gradient(135deg, #204a20, #142814) !important;
	border-color: #3a8a3a !important;
	color: #80ef80 !important;
	box-shadow: 0 0 12px rgba(60,200,60,0.2);
}

/* Divider between download and menu */
.sideNav-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--border-soft), transparent);
	margin: 10px 0;
}

/* Menu items */
.sideNav > ul > li { position: relative; }
.sideNav > ul > li > a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 15px;
	background: var(--primary);
	border-bottom: 1px solid var(--border);
	font-family: 'Cinzel', serif;
	font-size: 0.76em;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--font-color);
	border-left: 3px solid transparent;
}
.sideNav > ul > li > a i { color: var(--gold-dim); width: 16px; text-align: center; }
.sideNav > ul > li:hover > a {
	background: var(--surface2);
	color: var(--gold-light);
	border-left-color: var(--gold);
	padding-left: 18px;
}
.sideNav > ul > li:hover > a i { color: var(--gold); }

/* Submenu */
.sideNav > ul > li > ul { display: none; background: var(--secondary); border-top: 1px solid var(--border); }
.sideNav > ul > li.active > ul { display: block !important; }
.sideNav > ul > li > ul > li > a {
	display: block;
	padding: 8px 14px 8px 36px;
	font-size: 0.85em;
	color: var(--font-muted);
	border-bottom: 1px solid rgba(0,0,0,0.3);
	position: relative;
}
.sideNav > ul > li > ul > li > a::before { content: '›'; position: absolute; left: 22px; color: var(--gold-dim); }
.sideNav > ul > li > ul > li > a:hover { color: var(--gold-light); background: rgba(200,150,42,0.05); }

/* ══════════════════════════════════════════════════════
   PANELS / WIDGETS / WELL
══════════════════════════════════════════════════════ */
.panel, .well, .widget, .feedContainer {
	background: var(--primary);
	border: 1px solid var(--border-soft);
	border-radius: 6px;
	margin-bottom: 12px;
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}
.well { padding: 12px; }

.panel-header, .header {
	background: linear-gradient(90deg, var(--surface2), var(--surface));
	border-bottom: 1px solid var(--border-soft);
	padding: 10px 14px;
	font-family: 'Cinzel', serif;
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold);
	display: flex;
	align-items: center;
	gap: 8px;
	width: auto;
}
.panel-header::before, .header::before {
	content: '';
	display: inline-block;
	width: 3px;
	height: 14px;
	background: var(--gold);
	border-radius: 2px;
	box-shadow: 0 0 6px var(--gold);
}

/* ══════════════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════════════ */
table { width: 100%; border-collapse: collapse; background: var(--primary); }
thead tr { background: var(--surface2) !important; }
thead th {
	padding: 10px;
	font-family: 'Cinzel', serif;
	font-size: 0.74em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gold);
	border-bottom: 1px solid var(--border-soft);
}
tr:nth-child(2n+1) { background: rgba(0,0,0,0.2); }
tr:nth-child(2n)   { background: var(--primary); }
td { padding: 9px 10px; border-bottom: 1px solid rgba(0,0,0,0.25); font-size: 0.93em; }

/* ══════════════════════════════════════════════════════
   INPUTS & FORMS
══════════════════════════════════════════════════════ */
input, textarea, select {
	background: var(--secondary);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 4px;
	color: var(--font-bright);
	font-family: 'Crimson Pro', serif;
	font-size: 0.95em;
	padding: 8px 12px;
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--gold-dim);
	box-shadow: 0 0 0 2px rgba(200,150,42,0.15);
}
input { width: 100%; height: 40px; }
textarea { width: 100%; resize: vertical; }
select { height: 40px; cursor: pointer; }
input[type=radio], input[type=checkbox] { width: initial !important; height: initial !important; }
input[type=search] { background: var(--secondary); }

button, input[type=submit] {
	background: linear-gradient(135deg, var(--surface2), var(--primary));
	border: 1px solid var(--border-soft);
	border-radius: 4px;
	color: var(--gold);
	font-family: 'Cinzel', serif;
	font-size: 0.78em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 9px 18px;
	cursor: pointer;
}
button:hover, input[type=submit]:hover {
	background: rgba(200,150,42,0.08);
	border-color: var(--gold-dim);
	color: var(--gold-light);
	box-shadow: 0 0 12px rgba(200,150,42,0.15);
}

.loginForm { display: flex; flex-wrap: wrap; }
.loginForm .well { width: 100%; }
.loginForm input, .searchForm input { margin-top: 8px; }
.searchForm { width: 200px; }

/* ══════════════════════════════════════════════════════
   COUNTDOWN (legacy widget, kept for compat)
══════════════════════════════════════════════════════ */
#countDownTimer {
	line-height: 2.3;
	padding: 0 12px;
	color: #5390a8;
	background: var(--primary);
	font-family: 'Cinzel', serif;
	font-size: 0.85em;
}

/* ══════════════════════════════════════════════════════
   ALERT BOXES
══════════════════════════════════════════════════════ */
.alert-box {
	max-width: 520px;
	font-size: 14px;
	border-radius: 6px;
	border: 1px solid;
	margin: 0 auto 15px;
	text-align: center;
	padding: 10px 16px;
}
.alert-default  { background: var(--bg-default);  color: var(--color-default);  border-color: var(--border-default); }
.alert-info     { background: var(--bg-info);     color: var(--color-info);     border-color: var(--border-info); }
.alert-success  { background: var(--bg-success);  color: var(--color-success);  border-color: var(--border-success); }
.alert-warning  { background: var(--bg-warning);  color: var(--color-warning);  border-color: var(--border-warning); }
.alert-danger   { background: var(--bg-danger);   color: var(--color-danger);   border-color: var(--border-danger); }
.alert-collapse { display: inline-block; }
.alert-size1 { font-size: 12px; }
.alert-size2 { font-size: 15px; }
.alert-size3 { font-size: 18px; }
.alert-size4 { font-size: 20px; }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
footer {
	background: var(--primary);
	border: 1px solid var(--border-soft);
	border-radius: 6px;
	margin-top: 12px;
	padding: 18px;
	text-align: center;
	font-size: 0.82em;
	color: var(--font-muted);
	box-shadow: var(--shadow-sm);
}
footer a { color: var(--gold-dim); }
footer a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════
   WIDGETS
══════════════════════════════════════════════════════ */
.widget h3 {
	margin: 0;
	padding: 10px 14px;
	font-family: 'Cinzel', serif;
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold);
	background: linear-gradient(90deg, var(--surface2), var(--surface));
	border-bottom: 1px solid var(--border-soft);
}
.widget center { margin: auto; }

/* ══════════════════════════════════════════════════════
   SOCIAL MEDIA (generic)
══════════════════════════════════════════════════════ */
.smedia { font-size: 1.6em; }
.smedia a { display: inline-block; padding: 8px; color: var(--font-muted); border-radius: 4px; }
.smedia a:hover { color: var(--gold); background: rgba(200,150,42,0.1); }

/* ══════════════════════════════════════════════════════
   MISC / COMPAT
══════════════════════════════════════════════════════ */
.modIcon > i:nth-child(2)       { display: none; }
.modIcon:hover > i:nth-child(1) { display: none; }
.modIcon:hover > i:nth-child(2) { display: inline-block; }
#loginContainer li { text-align: right; }
#account-manage { width: initial !important; }
.TableContentContainer .TableContent { border: initial !important; }
.topPane { background: var(--secondary); border-bottom: 2px solid var(--border); margin-bottom: 10px; overflow: hidden; }
.vertical-menu a { color: var(--anchor) !important; }
.gold-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); margin: 14px 0; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
	.main { padding: 0 8px 2rem; }
}
@media (max-width: 960px) {
	.threeColLayout { flex-wrap: wrap; }
	.leftPane   { width: 100%; order: 2; }
	.centerPane { width: 100%; order: 1; }
	.rightPane  { width: 100%; order: 3; }
	.infoBar { flex-wrap: wrap; height: auto; padding: 6px 10px; gap: 4px; }
	.infoBar-block { border: none; padding: 4px 6px; }
}

/* ══ SOCIALS INFOBAR - OVERRIDE ══ */
.infoBar-socials {
    gap: 2px;
}

.infoBar-socials a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 0.78em;        /* más grande que antes (era 0.68) */
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    color: #8a9ab0;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.infoBar-socials a .fa {
    font-size: 1.3em;          /* icono más grande */
}

/* Discord */
.infoBar-socials a:nth-child(1) .fa { color: #7289da; }
.infoBar-socials a:nth-child(1):hover {
    color: #ffffff;
    background: rgba(114,137,218,0.15);
    border-color: rgba(114,137,218,0.3);
}
.infoBar-socials a:nth-child(1):hover .fa { color: #7289da; }

/* Facebook */
.infoBar-socials a:nth-child(2) .fa { color: #1877f2; }
.infoBar-socials a:nth-child(2):hover {
    color: #ffffff;
    background: rgba(24,119,242,0.15);
    border-color: rgba(24,119,242,0.3);
}
.infoBar-socials a:nth-child(2):hover .fa { color: #4da3ff; }

/* Instagram */
.infoBar-socials a:nth-child(3) .fa { color: #e1306c; }
.infoBar-socials a:nth-child(3):hover {
    color: #ffffff;
    background: rgba(225,48,108,0.15);
    border-color: rgba(225,48,108,0.3);
}
.infoBar-socials a:nth-child(3):hover .fa { color: #ff6699; }
