/* Google Fonts beágyazása a fantasy hangulathoz */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Marcellus+SC&family=Montserrat:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Háttér: fixen tartjuk középen, nem engedjük szétesni */
    background: #050505 url('../images/background.jpg') no-repeat top center;
    background-attachment: scroll;
    color: #cbd5e1;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* KÖZPONTI FŐ PANEL (Ez fogja össze az egész oldalt, mint a mintaképeden) */
.site-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.92);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.8);
    border-left: 1px solid #231b12;
    border-right: 1px solid #231b12;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Header a logóval */
.main-header {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-logo h1 {
    font-family: 'Marcellus SC', serif;
    font-size: 4rem;
    color: #e2a84b; /* Tompább, nemesebb arany */
    letter-spacing: 8px;
    text-shadow: 0 0 20px rgba(226, 168, 75, 0.3), 3px 3px 5px #000;
}

.header-logo p {
    font-family: 'Marcellus', serif;
    font-size: 1rem;
    color: #8c7853;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 5px;
}

/* Navigációs Menü */
.main-nav {
    background: linear-gradient(to bottom, #16120e, #0d0a07);
    border-top: 1px solid #3d2f1f;
    border-bottom: 1px solid #3d2f1f;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 18px 40px;
    color: #a39072;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Marcellus', serif;
    font-size: 0.95rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: #e2a84b;
    background: rgba(226, 168, 75, 0.05);
    text-shadow: 0 0 10px rgba(226, 168, 75, 0.5);
}

/* Háromoszlopos elrendezés a panelen belül */
.page-wrapper {
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 20px;
    flex: 1;
}

/* Blokkok dizájnja (Sötét, süllyesztett, arany szegéllyel) */
.web-block {
    background: #0f0d0b;
    border: 1px solid #231b12;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    margin-bottom: 20px;
}

.block-title {
    background: linear-gradient(to right, #1c150e, #0f0d0b);
    padding: 12px 15px;
    color: #d4b373;
    font-family: 'Marcellus', serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #231b12;
}

.block-content {
    padding: 15px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Középső nagy tartalom blokk kiemelése */
.main-content .block-title {
    font-size: 1.1rem;
    color: #e2a84b;
    border-bottom: 1px solid #3d2f1f;
}

.main-content .block-content {
    padding: 25px;
}

/* Prémium RPG gomb a letöltésnek */
.btn-download {
    display: block;
    background: linear-gradient(to bottom, #a17226, #5c3f11);
    color: #fff;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Marcellus', serif;
    font-size: 1rem;
    letter-spacing: 1px;
    border: 1px solid #cd9a43;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    transition: all 0.2s;
    margin-bottom: 20px;
}

.btn-download:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(226, 168, 75, 0.4);
}

/* Szerver státusz sorok */
.status-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #1a1510;
}
.status-item:last-child { border: none; }
.online { color: #4ade80; font-weight: bold; }
.offline { color: #f87171; font-weight: bold; }

/* Footer */
.main-footer {
    background: #070605;
    border-top: 1px solid #231b12;
    padding: 30px;
    text-align: center;
    color: #5c5243;
    font-size: 0.8rem;
    margin-top: auto;
}

/* Hírek és Bannerek Stílusa */
.news-banner {
    height: 300px;
    background-size: cover;
    background-position: center;
    border: 1px solid #3d2f1f;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border-radius: 4px;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
    padding: 25px;
}

.banner-tag {
    background: #e2a84b;
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.banner-overlay h3 {
    font-family: 'Marcellus', serif;
    font-size: 1.6rem;
    color: #fff;
    margin: 8px 0;
    text-shadow: 1px 1px 3px #000;
}

.banner-overlay p {
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* Egyedi Hír hivatkozások */
.news-item {
    background: rgba(20, 18, 15, 0.5);
    border-left: 3px solid #e2a84b;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.news-meta {
    font-size: 0.8rem;
    color: #6e5e49;
    margin-bottom: 5px;
}

.news-item h3 {
    font-family: 'Marcellus', serif;
    color: #e2a84b;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #a39072;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.read-more:hover {
    color: #e2a84b;
}

/* --- REGISZTRÁCIÓS ÉS BELÉPŐ ŰRLAPOK (FORM DESIGN) --- */

/* Az űrlap konténere */
.block-content form {
    max-width: 450px !important; /* Kicsit szélesebb, hogy kényelmesen elférjen */
    margin: 20px auto;
    display: flex;
    flex-direction: column; /* Minden elemet kényszerítünk, hogy egymás alá kerüljön */
    gap: 8px; /* Finom távolság az elemek között */
}

/* Feliratok (Label-ek) a mezők felett */
.block-content form label {
    display: block;
    color: #a39072; /* Tompa arany/bronz szín */
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 2px;
    text-align: left;
}

/* Az összes Beviteli mező (Input) */
.block-content form input[type="text"], 
.block-content form input[type="email"], 
.block-content form input[type="password"] {
    width: 100% !important; /* Teljes szélesség a formon belül */
    padding: 12px 15px;
    background: #090807; /* Mély fekete/barna háttér */
    border: 1px solid #2d2419; /* Sötét bronz szegély */
    color: #e2d9c8; /* Világos krém színű betűk */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    border-radius: 3px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8); /* Belső árnyék a süllyesztett hatásért */
    transition: all 0.25s ease-in-out;
    margin-bottom: 5px;
}

/* Amikor a felhasználó belekattint a mezőbe (Focus) */
.block-content form input:focus {
    border-color: #e2a84b; /* Élénkebb arany szegély */
    background: #0f0d0b;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.9), 0 0 8px rgba(226, 168, 75, 0.2);
    outline: none;
}

/* Placeholder (a halvány segédszöveg, pl. pl: 1234567) */
.block-content form input::placeholder {
    color: #534737;
    font-style: italic;
    font-size: 0.85rem;
}

/* Az űrlap küldő gombja (Submit gomb) */
.block-content form button[type="submit"] {
    width: 100% !important;
    margin-top: 20px;
    padding: 14px;
    background: linear-gradient(to bottom, #bd8d43 0%, #855e26 100%);
    border: 1px solid #e2a84b;
    border-radius: 3px;
    color: #fff;
    font-family: 'Marcellus', serif;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-shadow: 1px 1px 3px #000;
    transition: all 0.2s ease;
}

/* Gomb hover effekt */
.block-content form button[type="submit"]:hover {
    background: linear-gradient(to bottom, #dba653 0%, #a17332 100%);
    box-shadow: 0 0 15px rgba(226, 168, 75, 0.4);
    filter: brightness(1.1);
}

/* Gomb lenyomás effekt */
.block-content form button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* --- OLDALSÁV (SIDEBAR) EXTRA FORMÁZÁSOK --- */

/* Gyors Login Form a sidebarban */
.sidebar-login-form {
    max-width: 100% !important;
    margin: 5px 0 10px 0 !important;
    gap: 5px !important;
}

.sidebar-login-form input {
    padding: 10px 12px !important; /* Kicsit kompaktabb, hogy elférjen a kis dobozban */
    font-size: 0.85rem !important;
}

.sidebar-login-form button[type="submit"] {
    margin-top: 10px !important;
    padding: 10px !important;
    font-size: 0.95rem !important;
}

.sidebar-login-links {
    text-align: center;
    margin-top: 8px;
}

.sidebar-login-links a {
    color: #6e5e49;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.sidebar-login-links a:hover {
    color: #e2a84b;
}

/* Belépett User Box a sidebarban */
.user-welcome {
    text-align: center;
    font-size: 0.95rem;
    color: #cbd5e1;
    border-bottom: 1px solid #1a1510;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.user-highlight {
    color: #e2a84b;
    font-weight: bold;
}

/* Oldalsávos függőleges menü */
.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-menu li a {
    display: block;
    padding: 10px 12px;
    color: #a39072;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Marcellus', serif;
    border-radius: 3px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.sidebar-menu li a:hover {
    background: #14110e;
    color: #e2a84b;
    border: 1px solid #231b12;
    padding-left: 16px; /* Kis kitolás hoverre, nagyon jól néz ki */
}

/* Elválasztó vonal a kijelentkezés előtt */
.sidebar-menu .menu-separator {
    height: 1px;
    background: #231b12;
    margin: 8px 0;
}

.sidebar-menu .menu-logout {
    color: #f87171 !important;
}

.sidebar-menu .menu-logout:hover {
    background: rgba(248, 113, 113, 0.05) !important;
    border-color: rgba(248, 113, 113, 0.2) !important;
}

/* --- RANGLISTA TÁBLÁZAT --- */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.ranking-table th {
    background: #14110e;
    color: #e2a84b;
    font-family: 'Marcellus', serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #231b12;
}
.ranking-table td {
    padding: 12px;
    border-bottom: 1px solid #1a1510;
    font-size: 0.9rem;
}
.ranking-table tr:hover {
    background: rgba(226, 168, 75, 0.02);
}
.rank-number {
    font-weight: bold;
    color: #6e5e49;
}
.top-three .rank-number {
    color: #e2a84b; /* Arany szín az első háromnak */
    text-shadow: 0 0 5px rgba(226,168,75,0.3);
}
.top-three .player-name {
    color: #fff;
}
.player-level {
    text-align: center;
    font-weight: bold;
    color: #e2a84b;
}

/* --- ITEM SHOP GRID --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.shop-item-card {
    background: #090807;
    border: 1px solid #231b12;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
.shop-item-name {
    color: #fff;
    font-family: 'Marcellus', serif;
    font-size: 1rem;
    border-bottom: 1px solid #1a1510;
    padding-bottom: 8px;
    margin-bottom: 8px;
}
.shop-item-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 15px;
    flex: 1;
}
.shop-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #1a1510;
    padding-top: 10px;
}
.shop-item-price {
    color: #ffaa00;
    font-weight: bold;
    font-size: 1rem;
}

/* --- HOME TABS DESIGN --- */
.home-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #231b12;
    margin-bottom: 25px;
}

.tab-btn {
    background: #090807;
    border: 1px solid #231b12;
    border-bottom: none;
    color: #6e5e49;
    padding: 12px 25px;
    cursor: pointer;
    font-family: 'Marcellus', serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px 4px 0 0;
    transition: all 0.2s ease;
}

.tab-btn:hover, .tab-btn.active {
    background: #14110e;
    color: #e2a84b;
    border-color: #3d2f1f;
    text-shadow: 0 0 5px rgba(226,168,75,0.3);
}

.tab-btn.active {
    position: relative;
    font-weight: bold;
}
/* Kis arany csík az aktív gomb alatt */
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e2a84b;
}

/* Tab tartalmak alaphelyzete: rejtett */
.tab-content {
    display: none;
}

/* Aktív állapotban megjelenítjük */
.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-family: 'Marcellus', serif;
    color: #e2a84b;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* --- PATCHLOG / FIXES DESIGN --- */
.fix-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #1a1510;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.fix-meta {
    font-size: 0.8rem;
    color: #8c7853;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.fix-item h3 {
    font-family: 'Marcellus', serif;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.fix-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fix-li {
    font-size: 0.85rem;
    line-height: 1.4;
    padding-left: 15px;
    position: relative;
}

/* Kis színes indikátorok a log típusának megfelelően */
.fix-li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.log-add { color: #cbd5e1; }
.log-add::before { color: #4ade80; } /* Zöld pont a hozzáadott dolgoknak */

.log-fix { color: #cbd5e1; }
.log-fix::before { color: #f87171; } /* Piros pont a javításoknak */

.log-change { color: #cbd5e1; }
.log-change::before { color: #60a5fa; } /* Kék pont a változtatásoknak */