/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === BASE === */
body {
    background: url('images/map-bg.jpg') center center fixed;
    background-size: cover;

    color: #c4c4cc;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(180,40,40,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(200,120,20,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* === WRAPPER === */
.wrapper {
width: 95%;
max-width: 1500px;
margin: 0 auto;

/* Makes the parchment visible behind the site */
background: rgba(26,19,11,.70);

border-left: 3px solid #6b4f2a;
border-right: 3px solid #6b4f2a;

box-shadow:
0 4px 60px rgba(0,0,0,.7),
0 0 30px rgba(0,0,0,.5);

min-height: 100vh;
}

/* === HEADER === */
.site-header {
    position: relative;
    min-height: 700px;

    background:
        linear-gradient(rgba(0,0,0,.20), rgba(0,0,0,.40)),
        url('images/banner.jpg');

    background-size: cover;

    /* Shows more of the dragon */
    background-position: center top;

    background-repeat: no-repeat;

    border-bottom: 2px solid #b8860b;
    overflow: hidden;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #d4af37,
        #f7d774,
        #d4af37,
        transparent
    );
}

.hero-overlay {
    min-height: 700px;
}

.header-inner {
    padding: 0;
}

/* Keep the server status bar */
.info-bar {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 12px 20px;

    background: rgba(0,0,0,.65);

    border-top: 1px solid rgba(212,175,55,.25);

    font-size: 12px;
    color: #d6c6a0;
}

.info-bar em {
    color: #f0c75e;
    font-weight: 600;
    font-style: normal;
}

.info-bar .online {
    color: #4ade80;
}

.info-bar .offline {
    color: #f87171;
}

/* === NAV === */
.main-nav {
    width: 100%;
    position: relative;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 20px;
    margin-bottom: 15px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
    border-top: 1px solid #6f5321;
    border-bottom: 1px solid #6f5321;
    box-shadow:
        inset 0 1px 0 rgba(212,175,55,.15),
        0 0 15px rgba(0,0,0,.5);
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    color: #d8b15c;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    border: 1px solid #8a6a2d;
    border-radius: 4px;
    background: linear-gradient(to bottom,#2b1a08 0%,#1b1208 50%,#120b05 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,220,120,.15),
        0 1px 3px rgba(0,0,0,.5);
    transition: all .2s ease;
}

.main-nav a::before,
.main-nav a::after {
    content: "◆";
    color: #4ea3ff;
    font-size: 8px;
}

.main-nav a::before {
    margin-right: 8px;
}

.main-nav a::after {
    margin-left: 8px;
}

.main-nav a:hover {
    color: #fff3c0;
    border-color: #d4af37;
    background: linear-gradient(to bottom,#3a220a 0%,#24160a 50%,#181006 100%);
    box-shadow:
        0 0 10px rgba(212,175,55,.35),
        inset 0 1px 0 rgba(255,240,180,.25);
    transform: translateY(-2px);
}

.main-nav a:active {
    transform: translateY(0);
}

.main-nav li {
    list-style: none !important;
}

.main-nav img {
    display: none !important;
}

/* === LAYOUT FIX === */

/* Force content below navigation */
.main-nav {
width: 100%;
position: relative;
z-index: 50;
}

/* Main content must start on new row */
.content-area {
display: block;
clear: both;
width: 100%;
padding: 24px;
min-height: 400px;
}

/* Fix old Gesior table layouts */
.content-area table {
width: 100% !important;
}

.content-area > table:first-child {
display: block !important;
width: 100% !important;
}

/* Force news/search panels under menu */
.TableContainer {
width: 100%;
margin-top: 15px;
}

/* Remove weird side alignment */
table[width="100%"] {
width: 100% !important;
}

/* Center navigation */
.main-nav {
justify-content: center;
}

/* Better spacing under banner */
.main-nav {
margin-bottom: 15px;
}


/* === CONTENT === */
.content-area {
  padding: 24px;
  min-height: 400px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* === GESIOR PANELS === */
.TableContainer {
  background: #1c150c;
  border: 1px solid #2a2014;
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
}
.CaptionContainer, .CaptionInnerContainer {
  background: linear-gradient(180deg, #241a0e, #19120a);
  border-bottom: 1px solid #2a1a1a;
  padding: 12px 16px;
}
.CaptionContainer .Text, .CaptionInnerContainer .Text {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 14px;
  color: #d4880e;
  letter-spacing: 1px;
}
.InnerTableContainer {
  padding: 0;
}
.InnerTableContainer table {
  width: 100%;
}
.CaptionBorderTop, .CaptionBorderBottom,
.CaptionEdgeLeftTop, .CaptionEdgeRightTop,
.CaptionEdgeLeftBottom, .CaptionEdgeRightBottom,
.CaptionVerticalLeft, .CaptionVerticalRight,
.Border_1, .Border_2, .Border_3,
.Corner-tl, .Corner-tr, .Corner-bl, .Corner-br,
.CornerWrapper-b {
  display: none;
}

/* === TABLES === */
table {
  width: 100%;
  border-collapse: collapse;
}
td, th {
  padding: 10px 14px;
  border-bottom: 1px solid #2a2014;
  color: #c4c4cc;
  text-align: left;
}
th, .LabelH, .LabelH td {
  background: #221910;
  color: #d4880e;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
tr:hover td {
  background: rgba(212,175,55,0.07);
  transition: background 0.15s ease;
}

/* === LINKS === */
a { color: #c9605a; text-decoration: none; transition: color 0.2s; }
a:hover { color: #e88880; }

/* === FORMS === */
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], select, textarea {
  background: #120d07;
  border: 1px solid #3a2c18;
  color: #d4d4d8;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  border-radius: 3px;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: #c9302c;
  outline: none;
  box-shadow: 0 0 8px rgba(200,50,50,0.15);
}
input[type="submit"], input[type="button"] {
  background: linear-gradient(180deg, #8b1a1a, #6b1212);
  color: #e8e8e8;
  border: 1px solid #a02020;
  padding: 10px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}
input[type="submit"]:hover {
  background: linear-gradient(180deg, #a02020, #8b1a1a);
  box-shadow: 0 0 12px rgba(200,50,50,0.3);
}

/* === NEWS === */
.NewsHeadline {
  background: #1c150c;
  border: 1px solid #2a2014;
  border-radius: 4px;
  margin-bottom: 12px;
  padding: 14px;
}
.NewsHeadlineBackground {
  background: transparent !important;
}
.NewsHeadlineDate { color: #666; font-size: 12px; }

/* === STATUS COLORS === */
font[color="green"] { color: #4ade80 !important; }
font[color="red"] { color: #f87171 !important; }
font[color="yellow"] { color: #d4880e !important; }

/* === BOLD TEXT === */
b, strong { color: #e8e8e8; }

/* === FOOTER === */
.site-footer {
  background: #0f0a05;
  border-top: 1px solid #2a2014;
  padding: 20px;
  text-align: center;
  color: #555;
  font-size: 12px;
}
.site-footer a { color: #c9605a; }

/* === SUCCESS/ERROR === */
.success, .TableContainer font[color="green"] { color: #4ade80 !important; }
.error, .TableContainer font[color="red"] { color: #f87171 !important; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #120d07; }
::-webkit-scrollbar-thumb { background: #3a2c18; border-radius: 4px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .server-title { font-size: 28px; letter-spacing: 3px; }
  .main-nav { flex-direction: column; }
  .main-nav a { text-align: center; border-bottom: 1px solid #2a2014; }
  .info-bar { flex-direction: column; gap: 6px; align-items: center; }
  .content-area { padding: 16px; }
}

/* === FIX: Old Tibia button images === */
.BigButton, div[style*="sbutton"], div[style*="button"] {
  background-image: none !important;
  background: linear-gradient(180deg, #8b1a1a, #6b1212) !important;
  border: 1px solid #a02020 !important;
  border-radius: 3px !important;
}
div[class*="Button"], .ButtonText {
  background-image: none !important;
}
img[src*="sbutton"], img[src*="button"] {
  display: none !important;
}
/* Style the blue bar row of buttons */
div[style*="sbutton.gif"] {
  background-image: none !important;
  background: linear-gradient(180deg, #8b1a1a, #6b1212) !important;
  border: 1px solid #a02020 !important;
  border-radius: 3px !important;
  padding: 8px 16px !important;
  margin: 2px !important;
}
/* Override inline background-image on all elements */
.content-area div[style*="background-image"] {
  background-image: none !important;
}
.content-area img[src*="over.gif"],
.content-area img[src*="border"],
.content-area img[src*="edge"],
.content-area img[src*="chain"],
.content-area img[src*="box-frame"] {
  display: none !important;
}
/* Fix button text visibility */
.content-area div[onMouseOver] {
  background: transparent !important;
}


/* === RAPTOR CONTENT UPGRADE === */

.content-area {
    border-top: 1px solid rgba(212,175,55,.20);
}

.TableContainer {
    background: linear-gradient(
        rgba(5,5,10,.90),
        rgba(10,10,15,.92)
    );
    border: 1px solid #8a6a2d;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow:
        0 0 15px rgba(0,0,0,.50),
        inset 0 1px 0 rgba(255,220,120,.08);
}

.CaptionContainer,
.CaptionInnerContainer {
    background: linear-gradient(
        to bottom,
        #3b240c,
        #24160a
    );
    border-bottom: 1px solid #b8860b;
    padding: 14px 18px;
    box-shadow:
        inset 0 1px 0 rgba(255,220,120,.15);
}

.CaptionContainer .Text,
.CaptionInnerContainer .Text {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    color: #f0c75e;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(212,175,55,.25);
}

.InnerTableContainer {
    padding: 12px;
}

.NewsHeadline {
    border-left: 3px solid #d4af37;
    padding-left: 18px;
}

.site-footer {
    border-top: 1px solid rgba(212,175,55,.20);
}


/* === RAPTOR FINAL POLISH === */

.main-nav {
    gap: 14px !important;
}

.main-nav a {
    padding: 0 20px !important;
}

.main-nav a::before,
.main-nav a::after {
    text-shadow:
        0 0 4px rgba(78,163,255,.9),
        0 0 8px rgba(78,163,255,.4);
}

.content-area {
    background: linear-gradient(
        rgba(8,8,12,.85),
        rgba(12,12,18,.90)
    );
}

.NewsHeadline {
    border-left: 4px solid #d4af37;
    padding-left: 18px;
    margin-bottom: 18px;
}

.online {
    color: #4ade80 !important;
    text-shadow: 0 0 6px rgba(74,222,128,.6);
}

.offline {
    color: #f87171 !important;
    text-shadow: 0 0 6px rgba(248,113,113,.6);
}
/* =========================================
   ADVENTURES OF RAPTOR - PANEL REDESIGN
   ========================================= */

.TableContainer {
    background:
        linear-gradient(
            rgba(8,8,12,.95),
            rgba(12,12,18,.95)
        ) !important;

    border: 1px solid #5d4316 !important;

    border-radius: 8px;

    overflow: hidden;

    box-shadow:
        0 0 15px rgba(0,0,0,.6),
        inset 0 0 20px rgba(212,175,55,.04);

    margin-bottom: 20px;
}

.CaptionContainer,
.CaptionInnerContainer {
    background:
        linear-gradient(
            to bottom,
            #3b280d,
            #211408
        ) !important;

    border-bottom: 1px solid #8a6a2d !important;

    padding: 12px 18px !important;
}

.CaptionContainer .Text,
.CaptionInnerContainer .Text {
    color: #f0d48a !important;

    font-family: 'Cinzel', serif !important;

    font-size: 15px !important;

    font-weight: 700 !important;

    letter-spacing: 1px;

    text-shadow:
        0 0 8px rgba(212,175,55,.25);
}

.InnerTableContainer {
    background: transparent !important;
}

.InnerTableContainer table {
    background: transparent !important;
}

/* Table rows */
tr:nth-child(even) td {
    background: rgba(255,255,255,.01);
}

tr:hover td {
    background: rgba(212,175,55,.05);
}

/* Labels */
.LabelH,
.LabelH td,
th {
    background:
        linear-gradient(
            to bottom,
            #24160a,
            #140d06
        ) !important;

    color: #d4af37 !important;

    border-bottom: 1px solid #6f5321 !important;
}

/* Forms */
input[type="text"],
input[type="password"],
select {
    background: #140e07 !important;

    border: 1px solid #5d4316 !important;

    color: #f0d48a !important;

    border-radius: 4px;

    padding: 8px 12px;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: #4ea3ff !important;

    box-shadow:
        0 0 8px rgba(78,163,255,.4);
}

/* Buttons */
input[type="submit"],
input[type="button"] {
    background:
        linear-gradient(
            to bottom,
            #3a220a,
            #1a1006
        ) !important;

    border: 1px solid #b8860b !important;

    color: #f0d48a !important;

    font-weight: 700;
}

input[type="submit"]:hover,
input[type="button"]:hover {
    border-color: #ffd76a !important;

    box-shadow:
        0 0 10px rgba(212,175,55,.4);
}
/* =========================================
   RAPTOR HIGHSCORE / GUILD POLISH
   ========================================= */

/* Ranking Titles */
h1,
h2,
h3 {
    font-family: 'Cinzel', serif !important;
    color: #f0d48a !important;
    text-shadow:
        0 0 8px rgba(212,175,55,.25);
}

/* Skill Box */
table table {
    background: rgba(12,12,18,.85) !important;
    border: 1px solid #6f5321 !important;
    border-radius: 6px;
    overflow: hidden;
}

/* Skill Links */
table td a {
    color: #d4af37 !important;
    text-decoration: none !important;
}

table td a:hover {
    color: #ffd76a !important;
    text-shadow:
        0 0 6px rgba(212,175,55,.35);
}

/* Tibia Outfits */
td img {
    image-rendering: pixelated;
    filter:
        drop-shadow(0 0 4px rgba(78,163,255,.25));
}

/* Statistics Bar */
.info-bar {
    backdrop-filter: blur(4px);
    box-shadow:
        inset 0 1px 0 rgba(255,220,120,.08),
        0 0 15px rgba(0,0,0,.35);
}

/* Main Content Breathing Room */
.content-area {
    padding: 32px !important;
}

/* Gold Divider Above Footer */
.site-footer {
    border-top: 1px solid rgba(212,175,55,.25) !important;
}
/* =========================================
   RAPTOR HIGHSCORE IMPROVEMENTS
   ========================================= */

/* Center highscores content */
.content-area table[width="100%"] {
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

/* Skill panel */
table table {
    background: rgba(26,19,11,.96) !important;
    border: 1px solid #8a6a2d !important;
    border-radius: 6px;
    overflow: hidden;
}

table table td {
    padding: 8px 12px;
}

table table a {
    display: block;
    color: #d4af37 !important;
    text-decoration: none !important;
}

table table a:hover {
    background: rgba(212,175,55,.08);
    color: #ffd76a !important;
    padding-left: 4px;
}

/* First place highlight */
tr:nth-child(2) td {
    background: rgba(212,175,55,.08);
}

/* Crown beside player name */
tr:nth-child(2) td:nth-child(3) a {
    display: inline-flex;
    align-items: center;
}
tr:nth-child(2) td:nth-child(3) a::before {
    content: "👑";
    margin-right: 5px;
    font-size: 0.95em;
    line-height: 1;
}

/* =========================================
   TABLE & LINK POLISH
   ========================================= */

/* Smooth highlight + gold left-accent on data rows */
.content-area table tr {
    transition: background 0.15s ease;
}
.content-area table tr:hover td {
    background: rgba(212,175,55,0.07);
}

/* Don't apply the accent to header rows or nested menu/panel tables */
.content-area th:hover,
.content-area table table tr:hover td {
    box-shadow: none;
}

/* Player / character name links inside tables */
.content-area td a {
    transition: color 0.15s ease, text-shadow 0.15s ease;
}
.content-area td a:hover {
    text-shadow: 0 0 6px rgba(212,175,55,0.45);
}

/* Sortable column headers (Name / Level / Vocation links) */
.content-area th a,
.LabelH a {
    color: #d4880e !important;
}
.content-area th a:hover,
.LabelH a:hover {
    color: #ffd76a !important;
    text-shadow: 0 0 6px rgba(212,175,55,0.5);
}

/* =========================================
   WARM OVERRIDE FOR INLINE GESIOR BGCOLORS
   ========================================= */

/* Alternating player/data rows (override inline bgcolor) */
.content-area tr[bgcolor] td {
    background-color: #1a130b !important;
}
.content-area tr[bgcolor]:nth-child(even) td {
    background-color: #221910 !important;
}

/* Header / caption strips that use vdarkborder */
.content-area td[bgcolor][class="white"],
.content-area td[class="whites"],
.content-area .LabelH,
.content-area tr[bgcolor] td.white {
    background-color: #2b2010 !important;
}

/* Vocation portrait strip + count row in who's online */
.content-area td[bgcolor] img[src*="vocations"] {
    background: transparent;
}
.content-area tr[bgcolor] td img[src*="vocations"] {
    background: transparent !important;
}

/* Keep the hover highlight winning over the override */
.content-area table tr:hover td {
    background-color: rgba(212,175,55,0.10) !important;
}

/* =========================================
   RAPTOR BIGBUTTON FIX (Submit / Account Lost / etc.)
   Gesior structure:
   div.BigButton > div[onmouseover] > div.BigButtonOver + input.ButtonText(type=image)
   ========================================= */

/* Center the buttons within their table cells */
.content-area td .BigButton,
.content-area .BigButton {
    margin-left: auto !important;
    margin-right: auto !important;
}
.content-area form > table td,
.content-area table td:has(.BigButton) {
    text-align: center !important;
}

/* Outer button = clean themed pill, centered */
.content-area .BigButton {
    background: linear-gradient(to bottom, #3a220a, #1a1006) !important;
    background-image: linear-gradient(to bottom, #3a220a, #1a1006) !important;
    border: 1px solid #b8860b !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 160px !important;
    min-height: 40px !important;
    padding: 4px 10px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    box-shadow: inset 0 1px 0 rgba(255,220,120,.15), 0 1px 4px rgba(0,0,0,.5) !important;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease !important;
}
.content-area .BigButton:hover {
    border-color: #ffd76a !important;
    background-image: linear-gradient(to bottom, #4a330f, #241408) !important;
    box-shadow: 0 0 12px rgba(212,175,55,.4), inset 0 1px 0 rgba(255,240,180,.2) !important;
}

/* Strip the inner hover wrapper + its sbutton_over.gif (the gold line on hover) */
.content-area .BigButton .BigButtonOver,
.content-area .BigButton div[onmouseover],
.content-area .BigButton div[onmouseover] div {
    background: none !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* Force-hide ANY background image on inner button elements (kills hover line) */
.content-area .BigButton * {
    background-image: none !important;
}

/* Keep the text-GIF (Submit / Account Lost?) visible and centered */
.content-area .BigButton input.ButtonText,
.content-area .BigButton input[type="image"] {
    background: transparent !important;
    border: none !important;
    display: block !important;
    margin: 0 auto !important;
    cursor: pointer !important;
}
/* =========================================
RAPTOR PARCHMENT OVERRIDE
Place at VERY BOTTOM of style.css
========================================= */

/* Site background */
body {
background: url('images/map-bg.jpg') center center fixed !important;
background-size: cover !important;
}

/* Main wrapper */
.wrapper {
background: rgba(26,19,11,.70) !important;

```
border-left: 3px solid #6b4f2a !important;
border-right: 3px solid #6b4f2a !important;

box-shadow:
    0 4px 60px rgba(0,0,0,.7),
    0 0 30px rgba(0,0,0,.5) !important;
```

}

/* Remove dark content background */
.content-area {
background: transparent !important;
}

/* Semi-transparent panels */
.TableContainer {
background:
linear-gradient(
rgba(8,8,12,.65),
rgba(12,12,18,.65)
) !important;

```
border: 1px solid #5d4316 !important;

border-radius: 8px !important;

box-shadow:
    0 0 15px rgba(0,0,0,.6),
    inset 0 0 20px rgba(212,175,55,.04) !important;
```

}

/* Inner panel transparency */
.InnerTableContainer,
.InnerTableContainer table,
.TableContainer table,
.TableContainer tbody,
.TableContainer tr,
.TableContainer td {
background: transparent !important;
}
