@font-face {
    font-family: 'OctoberCrow';
    src: url('/assets/fonts/OctoberCrow.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* === Base === */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Georgia', serif;
}

body {
    padding: 40px;
}

h1 {
    font-family: 'OctoberCrow', Georgia, serif;
    font-size: 6em;
    font-weight: normal;
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 2px 2px 8px #a00;
}

h1.flicker {
    animation: flicker 3s infinite;
}

h2 {
    font-family: 'OctoberCrow', Georgia, serif;
    font-weight: normal;
    text-align: center;
    color: #a00;
}

/* === Animations === */
@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
    }
    20%, 22%, 24%, 55% {
        opacity: 0.4;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes highlight {
    0% { background: #a00; color: #fff; }
    100% { background: #111; color: #e0e0e0; }
}

/* === Enemy List === */
ul.enemy-list {
    list-style: none;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

ul.enemy-list li {
    padding: 10px;
    border-bottom: 1px solid #333;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

ul.enemy-list li:last-child {
    border-bottom: none;
}

ul.enemy-list li.highlight {
    background: #440000;
    color: #fff;
    animation: fadeInUp 0.5s ease-out forwards, highlight 2s ease-out forwards;
}

ul.enemy-list li .reason {
    display: block;
    font-size: 0.8em;
    color: #888;
    font-style: italic;
    margin-top: 4px;
}

/* === Navigation === */
.nav-links {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 20px;
    z-index: 100;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #a00;
}

/* === Forms === */
.form-card {
    max-width: 500px;
    margin: 40px auto;
    background: #111;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 0 10px rgba(200, 0, 0, 0.2);
}

.form-card label {
    display: block;
    margin-bottom: 6px;
    color: #aaa;
    font-size: 0.9em;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    margin-bottom: 14px;
    background: #222;
    color: #fff;
    font-family: 'Georgia', serif;
    font-size: 1em;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 60px;
}

.btn {
    padding: 10px 20px;
    background: #a00;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
    transition: background 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #d00;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

.btn-small {
    padding: 5px 12px;
    font-size: 0.85em;
}

.btn-danger {
    background: #600;
}

.btn-danger:hover {
    background: #900;
}

/* === Flash Messages === */
.flash {
    max-width: 500px;
    margin: 20px auto;
    padding: 12px 16px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.95em;
}

.flash-success {
    background: #1a3a1a;
    color: #6f6;
    border: 1px solid #2a5a2a;
}

.flash-error {
    background: #3a1a1a;
    color: #f66;
    border: 1px solid #5a2a2a;
}

/* === Admin Table === */
.admin-table-wrap {
    max-width: 700px;
    margin: 0 auto;
    overflow-x: auto;
}

table.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

table.admin-table th,
table.admin-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
}

table.admin-table th {
    background: #1a1a1a;
    color: #a00;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

table.admin-table tr:last-child td {
    border-bottom: none;
}

table.admin-table tr:hover {
    background: #1a1a1a;
}

.actions {
    display: flex;
    gap: 8px;
}

/* === Admin Header === */
.admin-header {
    text-align: center;
    margin-bottom: 20px;
    color: #a00;
}

.enemy-count {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.center {
    text-align: center;
}

/* === Footer === */
footer {
    text-align: center;
    margin-top: 60px;
    color: #555;
    font-size: 0.9em;
}

/* === Login === */
.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}
