/* Retro 90s Web Aesthetic */

* {
    box-sizing: border-box;
}

body {
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.6;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    background: #ffffff;
    color: #000000;
}

/* Links - classic blue/purple */
a {
    color: #0000EE;
}

a:visited {
    color: #0000EE;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    margin-bottom: 30px;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
}

header h1 {
    margin: 0;
    font-size: 2em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-icon {
    width: 40px;
    height: 40px;
}

.icon-link {
    display: flex;
}

header h1 a,
header h1 a:visited {
    text-decoration: none;
    color: #000000;
}

header h1 a:hover {
    color: #555555;
    text-decoration: none;
}

.subtitle {
    margin: 5px 0 0 0;
    font-style: italic;
    color: #666666;
}

/* Main content */
main {
    min-height: 400px;
}

h2 {
    border-bottom: 1px solid #000000;
    padding-bottom: 5px;
    margin-top: 30px;
}

h3 {
    margin-top: 25px;
}

/* Shakespeare quote */
.shakespeare {
    font-style: italic;
    border-left: 3px solid #666666;
    margin: 0 0 25px 0;
    padding: 15px 20px;
    background: #f9f9f9;
}

.shakespeare p {
    margin: 0 0 10px 0;
    line-height: 1.8;
}

.shakespeare cite {
    display: block;
    font-style: normal;
    font-size: 0.9em;
    color: #666666;
    margin-top: 10px;
}

/* Intro text */
.intro {
    background: #f0f0f0;
    border: 1px solid #cccccc;
    padding: 15px;
    margin-bottom: 20px;
}

/* Description blocks */
.description {
    margin-bottom: 20px;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
}

th, td {
    border: 1px solid #000000;
    padding: 8px 12px;
    text-align: left;
}

th {
    background: #cccccc;
    font-weight: bold;
}

tr:nth-child(even) {
    background: #f5f5f5;
}

/* Info table (key-value pairs) */
.info-table {
    width: auto;
    min-width: 300px;
}

.info-table th {
    width: 150px;
    background: #e0e0e0;
}

/* Download button - retro raised effect */
.download-btn,
.download-btn:visited {
    display: inline-block;
    background: #dddddd;
    border: 2px outset #999999;
    padding: 4px 12px;
    text-decoration: none;
    color: #000000;
    font-family: inherit;
    cursor: pointer;
}

.download-btn:hover {
    background: #cccccc;
    color: #000000;
}

.download-btn:active {
    border-style: inset;
}

.download-large {
    padding: 8px 20px;
    font-size: 1.1em;
}

/* Map button */
.map-btn,
.map-btn:visited {
    display: inline-block;
    background: #d0e8d0;
    border: 2px outset #999999;
    padding: 8px 20px;
    text-decoration: none;
    color: #000000;
    font-family: inherit;
    font-size: 1.1em;
    cursor: pointer;
}

.map-btn:hover {
    background: #c0d8c0;
    color: #000000;
}

.map-btn:active {
    border-style: inset;
}

/* Unavailable items */
.unavailable {
    color: #999999;
    font-style: italic;
}

/* Player list */
.player-list {
    column-count: 3;
    column-gap: 20px;
}

@media (max-width: 600px) {
    .player-list {
        column-count: 2;
    }
}

/* Notes */
.notes {
    background: #ffffcc;
    border: 1px solid #cccc00;
    padding: 15px;
    margin: 10px 0;
}

.warning-box {
    background: #ffe0e0;
    border: 1px solid #cc0000;
    padding: 15px;
    margin: 10px 0 20px 0;
}

/* Collapsible UUID players */
.uuid-players {
    border: 1px solid #cccccc;
    padding: 10px 15px;
    background: #f9f9f9;
}

.uuid-players summary {
    cursor: pointer;
    font-weight: bold;
    color: #666666;
}

.uuid-players summary:hover {
    color: #333333;
}

.uuid-explanation {
    font-style: italic;
    color: #666666;
    font-size: 0.9em;
    margin: 10px 0;
}

.player-coords-note {
    font-style: italic;
    color: #666666;
    font-size: 0.9em;
    margin: 5px 0 10px 0;
}

.player-coords {
    color: #666666;
    font-size: 0.9em;
    font-family: "Courier New", Courier, monospace;
}

.tech-notes {
    background: #f0f0f0;
    border: 1px solid #cccccc;
    padding: 15px;
    margin: 10px 0;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9em;
}

/* Code blocks */
code {
    font-family: "Courier New", Courier, monospace;
    background: #f0f0f0;
    padding: 2px 4px;
}

/* Footer */
footer {
    margin-top: 50px;
    padding-top: 15px;
    font-size: 0.9em;
    color: #666666;
}

footer hr {
    border: none;
    border-top: 1px solid #cccccc;
}

footer a,
footer a:visited {
    color: #666666;
}

footer a:hover {
    color: #333333;
}

/* Archive Navigation Buttons */
.archive-nav {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.nav-btn,
.nav-btn:visited {
    display: inline-block;
    background: #dddddd;
    border: 2px outset #999999;
    padding: 8px 20px;
    text-decoration: none;
    color: #000000;
    font-family: inherit;
    font-size: 1.1em;
    cursor: pointer;
}

.nav-btn:hover {
    background: #cccccc;
    color: #000000;
}

.nav-btn:active {
    border-style: inset;
}

/* Player Directory Cards - 90s Style */
.player-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.player-card {
    background: #f5f5f5;
    border: 1px solid #cccccc;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.player-name {
    font-weight: bold;
    min-width: 120px;
}

.player-worlds {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.world-tag,
.world-tag:visited {
    display: inline-block;
    background: #e8e8e8;
    border: 1px solid #999999;
    padding: 2px 8px;
    text-decoration: none;
    color: #0000EE;
    font-size: 0.9em;
}

.world-tag:hover {
    background: #d8d8d8;
    border-color: #666666;
}

.server-tag {
    display: inline-block;
    background: #cccccc;
    color: #333333;
    font-size: 0.8em;
    padding: 1px 5px;
    margin-left: 5px;
    border-left: 1px solid #999999;
}

/* Timeline Styles - Retro 90s aesthetic */
.timeline-container {
    background: #f0f0f0;
    border: 2px inset #999999;
    padding: 20px 10px;
    margin: 20px 0;
    overflow-x: auto;
}

.timeline-scroll {
    min-width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

.timeline-track {
    display: flex;
    min-width: max-content;
    padding: 0 20px;
    gap: 0;
}

/* Year columns */
.timeline-year {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 0 5px;
}

.year-label {
    font-weight: bold;
    font-size: 0.85em;
    background: #cccccc;
    padding: 2px 6px;
    border: 1px outset #999999;
    margin-bottom: 10px;
}

.year-line {
    width: 2px;
    height: 20px;
    background: #999999;
}

/* World dots */
.year-worlds {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.world-dot {
    display: block;
    text-decoration: none;
    text-align: center;
    position: relative;
}

.world-dot .dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #0000EE;
    border: 2px outset #6666FF;
    border-radius: 50%;
}

.world-dot:hover .dot {
    background: #6666FF;
    border-style: inset;
}

.world-dot .world-label {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
    background: #ffffcc;
    border: 1px solid #000000;
    padding: 2px 6px;
    font-size: 0.75em;
    white-space: nowrap;
    z-index: 10;
}

.world-dot:hover .world-label {
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        margin: 20px auto;
        padding: 0 10px;
    }

    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 6px 8px;
    }

    .timeline-track {
        flex-direction: column;
        min-width: 100%;
        padding: 0;
    }

    .timeline-year {
        flex-direction: row;
        min-width: 100%;
        padding: 10px;
        border-bottom: 1px solid #cccccc;
        gap: 15px;
    }

    .year-line {
        display: none;
    }

    .year-label {
        margin-bottom: 0;
    }

    .year-worlds {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 0;
    }
}
