@charset "utf-8";
/*
  Patagonia Online - Modern layout, tibia.com colors
  Dark brown bg, parchment content, gold accents
*/

/* ======================== RESET & BASE ======================== */
* { margin:0; padding:0; box-sizing:border-box; }
a { text-decoration:none; color:#5A2800; transition: color 0.2s; font-weight: 500; }
a:hover { color:#c8a64e; text-decoration:none; }
a:focus { outline: 2px solid #c8a64e; outline-offset: 2px; }
a img { border:0; }
p { margin:1em 0; }
.relative { position:relative; }
.left { float:left; }
.right { float:right; }
.clean_5 { height:5px; width:100%; float:left; }
.clean_20 { height:20px; width:100%; float:left; }

/* ======================== BODY ======================== */
body {
	background: #1C1410 url('../_img/background/background.png') top center no-repeat;
	background-size: 100% auto;
	background-attachment: fixed;
	font-size: 13px;
	color: #1a1a1a;
	font-family: 'Segoe UI', -apple-system, Arial, sans-serif;
	line-height: 1.5;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

/* ======================== PAGE ======================== */
#page {
	width: 1060px;
	margin: 0 auto;
	padding: 0 10px;
	text-align: left;
}

/* ======================== NAV LOGO (center of navbar) ======================== */
#nav_logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 0 auto;
	padding: 0 10px;
	margin-top: -110px;
	position: relative;
	z-index: 20;
}

#logo {
	width: 340px;
	height: 160px;
	background: url('../_img/background/logo.png') center center no-repeat;
	background-size: contain;
}

#online_bar {
	background: linear-gradient(to bottom, rgba(90,40,0,0.9), rgba(60,25,0,0.95));
	color: #D4C0A1;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 12px;
	display: inline-block;
	border: 1px solid #8B5E3C;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
	white-space: nowrap;
	margin-top: -4px;
}

#online_bar a { color: #F0D060 !important; font-weight: 600; }
#online_bar a:hover { color: #fff !important; }

.online-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	background: #44cc44;
	border-radius: 50%;
	margin-right: 3px;
	box-shadow: 0 0 6px rgba(68,204,68,0.6);
	animation: pulse-dot 2s ease-in-out infinite;
}

.online-dot.offline {
	background: #cc3333;
	box-shadow: 0 0 6px rgba(204,51,51,0.6);
	animation: none;
}

@keyframes pulse-dot {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

/* ======================== CONTENT WRAPPER ======================== */
#content {
	background: rgba(241, 224, 197, 0.75);
	width: 980px;
	margin: 0 auto;
	margin-left: 30px;
	margin-top: 120px;
	float: left;
	border: 2px solid #5A2800;
	border-radius: 10px 10px 0 0;
	box-shadow: 0 4px 30px rgba(0,0,0,0.4);
	overflow: visible;
	backdrop-filter: blur(4px);
}

#content::after {
	content: "";
	display: table;
	clear: both;
}

#content_bot {
	background: #5A2800;
	height: 6px;
	width: 980px;
	margin: 0 auto;
	float: left;
	margin-left: 30px;
	border-radius: 0 0 10px 10px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ======================== TOP NAV BAR ======================== */
#menu_top {
	background: linear-gradient(to bottom, #6B3A00, #5A2800 40%, #4A1E00);
	width: 100%;
	margin: 0;
	float: left;
	padding: 0;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 2px solid #8B5E3C;
	overflow: visible;
	position: relative;
}

.nav-left, .nav-right {
	display: flex;
	align-items: center;
	gap: 2px;
	height: 48px;
	flex: 1;
}

.nav-left { justify-content: flex-end; padding-right: 20px; }
.nav-right { justify-content: flex-start; padding-left: 20px; }

/* Nav buttons */
div.fadehover { position: relative; display: inline-block; }
div.fadehover img { display: none !important; }

div.fadehover::after {
	display: inline-block;
	padding: 8px 16px;
	background: transparent;
	color: #F0D060;
	font-family: 'Segoe UI', Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

div.fadehover:hover::after {
	background: rgba(240,208,96,0.12);
	color: #fff;
}

#menu_top_home div.fadehover::after { content: "News"; }
#menu_top_acc div.fadehover::after { content: "Account"; }
#menu_top_shop div.fadehover::after { content: "Shop"; }
#menu_top_forum div.fadehover::after { content: "Forum"; }
#menu_top_highscores div.fadehover::after { content: "Scores"; }
#menu_top_register div.fadehover::after { content: "Register"; }

img.a, img.b { position:absolute; left:0; top:0; }
img.a { z-index:10; }
.divider { height:1px; width:inherit; }

#menu_top_home, #menu_top_acc, #menu_top_shop,
#menu_top_forum, #menu_top_highscores, #menu_top_register {
	float: none; position: relative; left: 0; display: inline-block; flex-shrink: 0;
}

/* ======================== LEFT SIDEBAR ======================== */
#menu_left {
	margin: 16px 0 16px 12px;
	width: 185px;
	float: left;
}

#menu-label {
	background: linear-gradient(to bottom, #6B3A00, #5A2800);
	color: #F0D060;
	float: left;
	height: 34px;
	width: 185px;
	margin: 0;
	border-radius: 8px 8px 0 0;
	line-height: 34px;
	padding-left: 40px;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	position: relative;
	border: 2px solid #5A2800;
	border-bottom: none;
	box-shadow: 0 0 0 1px #8B5E3C;
}

#icon-news, #icon-account, #icon-community, #icon-library,
#icon-shop, #icon-toplevel, #icon-topguilds, #icon-search, #icon-info {
	width: 32px; height: 32px; float: left;
	margin: 1px 4px 0 -36px;
	position: relative; z-index: 2;
}

#icon-news { background:url("../images/menu/icon-news.gif") no-repeat center; }
#icon-account { background:url("../images/menu/icon-account.gif") no-repeat center; }
#icon-community { background:url("../images/menu/icon-community.gif") no-repeat center; }
#icon-library { background:url("../images/menu/icon-library.gif") no-repeat center; }
#icon-shop { background:url("../images/menu/icon-shop.gif") no-repeat center; }
#icon-toplevel { background:url("../images/menu/icon-toplevel.gif") no-repeat center; }
#icon-topguilds { background:url("../images/menu/icon-topguilds.gif") no-repeat center; }
#icon-search { background:url("../images/menu/icon-search.gif") no-repeat center; }
#icon-info { background:url("../images/menu/icon-info.gif") no-repeat center; }

#text-news, #text-account, #text-community, #text-library,
#text-shop, #text-toplevel, #text-topguilds, #text-search, #text-info {
	width:0; height:0; float:left; overflow:hidden; font-size:0;
}

#menu_links {
	width: 185px;
	float: left;
	font-size: 12px;
	font-weight: 500;
	background: #C9B48E;
	border: 2px solid #5A2800;
	border-top: none;
	border-radius: 0 0 8px 8px;
	margin-bottom: 8px;
	overflow: hidden;
	box-shadow: 0 0 0 1px #8B5E3C;
}

#menu_links ul { list-style:none; margin:0; padding:0; }

#menu_links li {
	border-bottom: 1px solid #8B5E3C;
	display: block; padding: 0; margin: 0;
}

#menu_links li:last-child { border-bottom: none; }

#menu_links li a {
	color: #5A2800;
	display: block; text-decoration: none;
	padding: 8px 12px;
	font-size: 12px; font-weight: 500;
}

#menu_links li a:hover { color: #1a1a1a; }

/* ======================== MAIN CONTENT ======================== */
#content_text {
	margin: 16px 12px 16px 12px;
	width: 545px;
	max-width: 545px;
	float: left;
	color: #1a1a1a;
	overflow: hidden;
}

#content_text a { color: #5A2800; font-weight: 600; }
#content_text a:hover { color: #c8a64e; }

/* ======================== RIGHT SIDEBAR ======================== */
#menu_right {
	margin: 16px 12px 16px 8px;
	width: 185px;
	float: left;
}

#menu_right .white, .white { color: #5A2800 !important; font-weight: 600; }
#menu_right i { color: #8B5E3C; font-style: normal; font-weight: 600; }

#menu_right table {
	width: 100%;
	background: #C9B48E;
	border: none;
	border-collapse: collapse;
	margin: 0;
}

#menu_right table tr { background: transparent !important; }

#menu_right table td {
	padding: 6px 10px; font-size: 11px;
	color: #5A2800; border-bottom: 1px solid #8B5E3C;
	background: transparent !important;
}

#menu_right table tr:nth-child(odd) td { background: #C9B48E !important; }
#menu_right table tr:nth-child(even) td { background: #BFAA82 !important; }

#menu_right table a { color: #5A2800; font-weight: 600; }
#menu_right table a:hover { color: #c8a64e; }

/* ======================== SEARCH ======================== */
.search {
	background: #F1E0C5;
	border: 1px solid #B0A080;
	padding: 8px 12px;
	color: #5A2800;
	border-radius: 6px;
	font-family: 'Segoe UI', Arial, sans-serif;
	font-size: 12px;
	width: 150px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.search:focus {
	border-color: #5A2800;
	outline: none;
	box-shadow: 0 0 0 3px rgba(90,40,0,0.15);
}

/* ======================== TABLES ======================== */
table { font-family: 'Segoe UI', Arial, sans-serif; }
td { font-size: 12px; padding: 4px 8px; color: #3D1E00; }
td a { color: #5A2800; font-weight: 600; }
td a:hover { color: #c8a64e; }

/* ======================== CONTENT TABLES (style like sidebar menus) ======================== */
#content_text table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	margin-bottom: 12px;
	background: #C9B48E;
	border: 2px solid #5A2800;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 0 0 1px #8B5E3C;
	table-layout: auto;
}

#content_text table table {
	border: none;
	border-radius: 0;
	margin-bottom: 0;
	box-shadow: none;
}

/* Wrapper tables sin estilo */
#content_text > table[cellpadding="0"],
#content_text > TABLE[CELLPADDING="0"] {
	border: none;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}

#content_text > table[cellpadding="0"] > tbody > tr > td {
	background: transparent !important;
	border: none;
	padding: 0;
}

/* ALL rows - kill any inline BGCOLOR */
#content_text tr,
#content_text TR {
	background: transparent !important;
}

#content_text td,
#content_text TD {
	padding: 8px 12px;
	color: #5A2800;
	font-size: 12px;
	font-weight: 500;
	border: none;
	border-bottom: 1px solid #A89470;
}

#content_text tr:nth-child(odd) td,
#content_text TR:nth-child(odd) TD {
	background: #C9B48E !important;
}

#content_text tr:nth-child(even) td,
#content_text TR:nth-child(even) TD {
	background: #BFAA82 !important;
}

/* No cambiar headers */
#content_text tr[bgcolor="#5A2800"] td,
#content_text TR[BGCOLOR="#5A2800"] td,
#content_text TR[BGCOLOR="#5A2800"] TD {
	background: transparent !important;
}


/* Header rows - like #menu-label */
#content_text tr[bgcolor="#5A2800"],
#content_text TR[BGCOLOR="#5A2800"] {
	background: linear-gradient(to bottom, #6B3A00, #5A2800) !important;
}

#content_text tr[bgcolor="#5A2800"] td,
#content_text TR[BGCOLOR="#5A2800"] td,
#content_text TR[BGCOLOR="#5A2800"] TD {
	background: transparent !important;
	color: #F0D060 !important;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 8px 12px;
	border-bottom: none;
}

/* CLASS=white and CLASS=whites used as header text */
#content_text .white,
#content_text .whites {
	color: #F0D060 !important;
	font-weight: 600 !important;
}

/* H2 titles */
#content_text h2, #content_text H2 {
	color: #5A2800;
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px 0;
}

/* ======================== HIGHSCORES ======================== */
.hs-container {
	width: 100%;
	max-width: 100%;
	border: 2px solid #5A2800;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 0 0 1px #8B5E3C;
}

.hs-banner {
	line-height: 0;
}

.hs-banner img {
	width: 100%;
	height: auto;
	display: block;
}

/* Category nav bar */
.hs-nav {
	display: flex;
	flex-wrap: wrap;
	background: linear-gradient(to top, rgba(40,20,0,0.95), rgba(40,20,0,0.6), transparent);
	padding: 12px 8px 8px 8px;
	gap: 4px;
	justify-content: center;
	margin-top: -44px;
	position: relative;
	z-index: 2;
}

.hs-nav-btn {
	padding: 5px 12px;
	color: #D4C0A1 !important;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 4px;
	background: transparent;
	transition: background 0.2s, color 0.2s;
}

.hs-nav-btn:hover {
	background: rgba(240,208,96,0.15);
	color: #F0D060 !important;
}

.hs-nav-btn.active {
	background: #F0D060;
	color: #5A2800 !important;
}

/* List */
.hs-list {
	background: #C9B48E;
}

.hs-row {
	display: flex;
	align-items: center;
	padding: 8px 14px;
	border-bottom: 1px solid #8B5E3C;
}

.hs-row:last-child {
	border-bottom: none;
}

.hs-header {
	background: #5A2800 !important;
	padding: 10px 14px;
}

.hs-header span {
	color: #F0D060;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hs-odd {
	background: #C9B48E;
}

.hs-even {
	background: #BFAA82;
}

/* Top 3 */
.hs-top1 {
	background: rgba(240,208,96,0.2) !important;
}

.hs-top1 .hs-rank {
	color: #F0D060;
	font-weight: 700;
	font-size: 14px;
}

.hs-top2 {
	background: rgba(192,192,192,0.15) !important;
}

.hs-top3 {
	background: rgba(180,130,70,0.15) !important;
}

/* Columns */
.hs-rank {
	width: 50px;
	font-weight: 600;
	color: #5A2800;
	flex-shrink: 0;
}

.hs-name {
	flex: 1;
	color: #5A2800;
}

.hs-name a {
	color: #5A2800 !important;
	font-weight: 600;
}

.hs-name a:hover {
	color: #c8a64e !important;
}

.hs-level {
	width: 70px;
	text-align: center;
	font-weight: 600;
	color: #5A2800;
	flex-shrink: 0;
}

.hs-points {
	width: 120px;
	text-align: right;
	color: #8B5E3C;
	font-size: 11px;
	flex-shrink: 0;
}

/* Pagination */
.hs-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 10px;
	background: linear-gradient(to bottom, #6B3A00, #5A2800);
}

.hs-page-btn {
	padding: 5px 16px;
	background: transparent;
	color: #F0D060 !important;
	font-size: 11px;
	font-weight: 600;
	border: 1px solid #8B5E3C;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hs-page-btn:hover {
	background: rgba(240,208,96,0.15);
	color: #fff !important;
}

/* Pagination links */
#content_text a[href*="page="],
#content_text .size_xxs,
#content_text .size_xs {
	display: inline-block;
	padding: 4px 12px;
	background: #5A2800;
	color: #F0D060 !important;
	font-weight: 600;
	font-size: 11px;
	border-radius: 4px;
	margin: 2px 0;
}

#content_text a[href*="page="]:hover,
#content_text .size_xxs:hover,
#content_text .size_xs:hover {
	background: #6B3A00;
	color: #fff !important;
}

/* ======================== FORM INPUTS ======================== */
INPUT[type="image"] {
	transition: all 0.2s;
	border-radius: 4px;
}

INPUT[type="image"]:hover { opacity: 0.8; }

/* ======================== BIG BUTTONS (legacy cleanup) ======================== */
.BigButton, .BigButtonOver, .ButtonText { display: none !important; }

/* ======================== LOGIN FORM ======================== */
.login-form {
	padding: 8px 0;
}

.login-fields {
	margin-bottom: 12px;
}

.login-row {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
}

.login-row label {
	width: 130px;
	font-weight: 600;
	color: #5A2800;
	font-size: 12px;
	flex-shrink: 0;
}

.login-buttons {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.btn-login, .btn-lost {
	padding: 9px 28px;
	font-family: 'Segoe UI', Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	text-transform: uppercase;
}

.btn-login {
	background: linear-gradient(to bottom, #6B3A00, #5A2800);
	color: #F0D060;
	border: 2px solid #8B5E3C;
}

.btn-login:hover {
	background: linear-gradient(to bottom, #8B5E3C, #6B3A00);
	color: #fff;
}

.btn-lost {
	background: transparent;
	color: #5A2800;
	border: 2px solid #8B5E3C;
}

.btn-lost:hover {
	background: rgba(90,40,0,0.1);
	color: #5A2800;
}

.TopButtonContainer {
	position: relative;
	right: 0;
	top: 0;
}

INPUT[type="text"], INPUT[type="password"], TEXTAREA, SELECT {
	background: #F1E0C5;
	border: 1px solid #B0A080;
	padding: 8px 12px;
	color: #5A2800;
	border-radius: 6px;
	font-family: 'Segoe UI', Arial, sans-serif;
	font-size: 12px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

INPUT[type="text"]:focus, INPUT[type="password"]:focus, TEXTAREA:focus, SELECT:focus {
	border-color: #5A2800;
	outline: none;
	box-shadow: 0 0 0 3px rgba(90,40,0,0.15);
}

INPUT[type="checkbox"] { accent-color: #5A2800; }

/* ======================== FONT OVERRIDES ======================== */
font[color="green"], FONT[color="green"] { color: #2D7A3A !important; }
font[color="red"], FONT[color="red"] { color: #B82E2E !important; }
font[color="orange"], FONT[color="orange"] { color: #c8a64e !important; }
font[color="white"], FONT[color="white"] { color: #F0D060 !important; }
font[color="#7073FC"] { color: #8B5E3C !important; }

/* ======================== MISC ======================== */
b { color: #5A2800; }
.Text { color: #F0D060 !important; font-weight: 600; }

.ErrorMessage {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 8px;
	padding: 12px 16px;
	color: #991b1b;
}

.AttentionSign { display: none; }

/* ======================== CHARACTER OUTFIT ======================== */
.char-outfit {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 16px;
	margin-bottom: 12px;
	background: linear-gradient(to bottom, #5A2800, #3D1E00);
	border: 2px solid #5A2800;
	border-radius: 8px;
	box-shadow: 0 0 0 1px #8B5E3C;
}

.char-outfit img {
	image-rendering: pixelated;
	width: 64px;
	height: 64px;
}

.char-outfit-name {
	color: #F0D060;
	font-size: 16px;
	font-weight: 700;
	margin-top: 8px;
	letter-spacing: 0.5px;
}

.char-outfit-status {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 4px;
	padding: 2px 10px;
	border-radius: 10px;
}

.char-outfit-status.online {
	color: #44cc44;
	background: rgba(68,204,68,0.15);
}

.char-outfit-status.offline {
	color: #cc6666;
	background: rgba(204,102,102,0.15);
}

/* ======================== CHARACTER BARS ======================== */
.char-bars, .char-skills {
	padding: 10px 14px;
}

.char-bar-row {
	display: flex;
	align-items: center;
	margin-bottom: 6px;
}

.char-bar-label {
	width: 90px;
	font-size: 11px;
	font-weight: 600;
	color: #5A2800;
	flex-shrink: 0;
}

.char-bar-track {
	flex: 1;
	height: 18px;
	background: #3D1E00;
	border-radius: 9px;
	position: relative;
	overflow: hidden;
	border: 1px solid #5A2800;
}

.char-bar-fill {
	height: 100%;
	border-radius: 9px;
	transition: width 0.3s;
}

.char-bar-hp { background: linear-gradient(to bottom, #cc3333, #991b1b); }
.char-bar-mp { background: linear-gradient(to bottom, #3377cc, #1b4f99); }
.char-bar-exp { background: linear-gradient(to bottom, #c8a64e, #9A7520); }
.char-bar-magic { background: linear-gradient(to bottom, #7744bb, #553399); }
.char-bar-skill { background: linear-gradient(to bottom, #44aa44, #2d7a2d); }

.char-bar-text {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 600;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ======================== TASKS ACCORDION ======================== */
.tasks-container {
	width: 100%;
}

.task-section {
	margin-bottom: 8px;
	border: 2px solid #5A2800;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 0 0 1px #8B5E3C;
}

.task-header {
	background: linear-gradient(to bottom, #6B3A00, #5A2800);
	color: #F0D060;
	padding: 10px 16px;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.task-header::-webkit-details-marker { display: none; }

.task-header::after {
	content: "\25BC";
	font-size: 10px;
	color: #D4C0A1;
	transition: transform 0.2s;
}

.task-section[open] .task-header::after {
	transform: rotate(180deg);
}

.task-section table {
	border: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	margin: 0 !important;
}

.task-section .task-columns td {
	background: #5A2800 !important;
	color: #F0D060 !important;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding: 8px 12px;
}

::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-track { background:#F1E0C5; }
::-webkit-scrollbar-thumb { background:#B0A080; border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background:#8B5E3C; }
