
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 2px solid #8b0000;
    margin-bottom: 30px;
}

header h1 {
    font-size: 3em;
    color: #ff4444;
    font-weight: bold;
}

header .tagline {
    color: #999;
    font-style: italic;
    margin-top: 10px;
}

.main-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar nav {
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px 0;
}

.sidebar-section {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h3 {
    color: #ff4444;
    font-size: 0.9em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    margin: 8px 0;
}

.sidebar-section a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-section a:hover {
    background: #333;
    color: #ff4444;
}

.sidebar-thumbnail {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.npc-list {
    max-height: 300px;
    overflow-y: auto;
}

/* ===== MAIN CONTENT ===== */
.content {
    background: #222;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
}

h2 {
    color: #ff4444;
    margin-bottom: 20px;
    font-size: 2em;
}

h3 {
    color: #ff6666;
    margin-bottom: 15px;
    font-size: 1.5em;
}

/* ===== SESSION CARD ===== */
.session-card {
    background: #1a1a1a;
    border-left: 4px solid #8b0000;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.session-header h3 {
    flex: 1;
}

.session-header time {
    color: #999;
    font-size: 0.9em;
    white-space: nowrap;
    margin-left: 20px;
}

.in-game-date {
    color: #999;
    font-style: italic;
    margin: 10px 0;
}

.session-summary {
    margin: 15px 0;
    padding: 10px;
    background: #2a2a2a;
    border-radius: 4px;
}

.session-notes pre {
    background: #111;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.9em;
    line-height: 1.5;
}

details {
    cursor: pointer;
    margin: 10px 0;
}

summary {
    color: #ff4444;
    padding: 5px;
    border-radius: 4px;
}

summary:hover {
    background: #333;
}

/* ===== CHARACTER GRID ===== */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.character-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.character-card:hover {
    border-color: #8b0000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.character-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.character-placeholder {
    width: 100%;
    height: 200px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.character-card h4 {
    padding: 12px;
    color: #ff4444;
    font-size: 1em;
}

.character-card p {
    padding: 0 12px 8px;
    font-size: 0.85em;
    color: #999;
}

.clan {
    font-style: italic;
}

.player {
    color: #888;
}

.status {
    font-weight: bold;
}

/* ===== CHARACTER DETAIL ===== */
.character-detail {
    max-width: 900px;
}

.character-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.character-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    width: 100%;
    border-radius: 8px;
    border: 2px solid #8b0000;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-image {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #333;
    cursor: pointer;
    transition: border-color 0.3s;
}

.gallery-image:hover {
    border-color: #8b0000;
}

.character-info {
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
}

.character-info h1 {
    color: #ff4444;
    margin-bottom: 15px;
}

.character-info dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
}

.character-info dt {
    font-weight: bold;
    color: #ff6666;
}

.character-info dd {
    color: #ccc;
}

.biography, .relations, .notes {
    margin: 25px 0;
    padding: 20px;
    background: #1a1a1a;
    border-left: 4px solid #8b0000;
    border-radius: 4px;
}

.biography h2, .relations h3, .notes h3 {
    color: #ff4444;
    margin-bottom: 15px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
}

.page-info {
    color: #999;
    padding: 0 15px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #8b0000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #b00000;
    text-decoration: none;
}

.btn-secondary {
    background: #333;
    color: #ff4444;
}

.btn-secondary:hover {
    background: #444;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9em;
}

.back-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.back-link a {
    color: #ff4444;
    text-decoration: none;
    transition: color 0.3s;
}

.back-link a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .character-header {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2em;
    }
}
