@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Oswald:wght@500;700&display=swap');

:root {
    --bg-dark: #0a0c0a;
    --bg-glass: rgba(15, 20, 17, 0.85);
    --primary: #5c704f; /* Zelená barva mechu/infekce */
    --primary-hover: #7b946b;
    --accent: #a36b45; /* Rezavá / krev */
    --text-main: #d1d5db;
    --text-muted: #838a85;
    --border-color: rgba(92, 112, 79, 0.3);
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Rozmazané video na pozadí */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    object-fit: cover;
    filter: blur(8px) brightness(0.25) sepia(0.4) hue-rotate(60deg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Skleněné špinavé panely */
.panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Tlačítka přeživších */
.btn {
    background: var(--primary);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 24px;
    font-family: var(--font-head);
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn:hover, .btn-glow:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 15px rgba(92, 112, 79, 0.5);
}

.btn-rust {
    background: var(--accent);
    border-color: rgba(255,255,255,0.1);
}
.btn-rust:hover {
    background: #c27d4e;
    box-shadow: 0 0 15px rgba(163, 107, 69, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: rgba(92, 112, 79, 0.1);
    color: #fff;
}

/* Formuláře */
input, select, textarea {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 15px;
    font-family: var(--font-body);
    border-radius: 4px;
    margin-bottom: 20px;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    background: rgba(92, 112, 79, 0.1);
}

/* Navigace */
header {
    background: rgba(10,12,10,0.9);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 20px;
    font-family: var(--font-head);
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-hover);
}

/* Speciální bloky pro Auth (Přihlášení/Registrace) */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

.auth-panel {
    max-width: 450px;
    text-align: center;
    margin: 0 auto;
    z-index: 10;
    position: relative;
    padding: 40px;
}

.input-box {
    background: rgba(0,0,0,0.6) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.input-box:focus {
    border-color: var(--primary) !important;
}

/* Výběr postavy v create_character.php */
.char-selector { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 20px; 
    margin-bottom: 20px; 
}
.char-img-wrap { 
    width: 200px; 
    height: 250px; 
    border: 2px solid var(--primary); 
    border-radius: 8px; 
    overflow: hidden; 
}
.char-img-wrap img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.arrow-btn { 
    background: rgba(0,0,0,0.5); 
    border: none; color: #fff; 
    font-size: 2rem; 
    cursor: pointer; 
    padding: 10px; 
    border-radius: 50%; 
}
.arrow-btn:hover { 
    color: var(--primary); 
}

/* Restarty Serveru na Indexu */
.restart-box {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

/* ==========================================
   ANIMACE A VYSKAKOVACÍ OZNÁMENÍ (TOASTY)
   ========================================== */

/* Fade-in animace pro načítání stránek */
.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* VYLEPŠENÉ TOAST NOTIFIKACE (DOLE VPRAVO) */
#toast-container {
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 9999; 
    display: flex; 
    flex-direction: column-reverse; /* Aby se nové řadily nahoru */
    gap: 15px;
}
.toast {
    position: relative; 
    background: rgba(15,20,17,0.95); 
    border-left: 5px solid var(--primary); 
    color: #fff;
    padding: 15px 25px 20px 25px; 
    border-radius: 6px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    backdrop-filter: blur(8px); 
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    display: flex; 
    align-items: center; 
    gap: 15px; 
    font-weight: bold; 
    font-family: var(--font-body);
    overflow: hidden; 
    min-width: 250px;
}
.toast.error { border-left-color: var(--accent); }

.toast::after {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    height: 4px; 
    width: 100%;
    background: var(--primary); 
    animation: progressToast 4s linear forwards;
}
.toast.error::after { background: var(--accent); }

@keyframes popIn { 
    0% { transform: translateX(120%) scale(0.8); opacity: 0; } 
    100% { transform: translateX(0) scale(1); opacity: 1; } 
}
@keyframes slideOut { 
    0% { transform: translateX(0); opacity: 1; height: auto; } 
    100% { transform: translateX(120%); opacity: 0; height: 0; padding: 0; margin: 0; } 
}
@keyframes progressToast { 
    0% { width: 100%; } 
    100% { width: 0%; } 
}