/* Shared CSS for CS2 Demo Pages */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #1e1e1e;
    color: #f5f5f5;
}

h1, h2 {
    color: #ffb300;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #333333;
    padding-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #333333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 40px;
}

th {
    background-color: #ffb300;
    color: #1e1e1e;
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
}

td {
    padding: 10px 15px;
    border-bottom: 1px solid #444444;
    color: #f5f5f5;
}

tr:hover {
    background-color: #3a3a3a;
}

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

a {
    color: #ffb300;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
    color: #ffc233;
}

.timestamp {
    color: #999;
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
}

.nav-links {
    text-align: center;
    margin-bottom: 20px;
}

.nav-links a {
    margin: 0 10px;
    padding: 8px 15px;
    background-color: #333333;
    border-radius: 5px;
    display: inline-block;
}

.nav-links a:hover {
    background-color: #3a3a3a;
}

/* Spoiler functionality */
.spoiler {
    background-color: #444;
    color: transparent;
    user-select: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
    position: relative;
}

.spoiler::after {
    content: "Click to reveal";
    position: absolute;
    left: 0;
    right: 0;
    color: #aaa;
    font-size: 0.8em;
}

.spoiler.revealed {
    background-color: transparent;
    color: #f5f5f5;
    user-select: auto;
}

.spoiler.revealed::after {
    content: "";
}

.spoiler.winner {
    font-weight: bold;
    color: #ffb300;
}

.filter-status {
    background-color: #333;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 5px;
    color: #ffb300;
    font-weight: bold;
}

/* Button styles */
.show-more-btn {
    display: block;
    width: 100%;
    background-color: #444;
    border: none;
    color: #ffb300;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    border-top: 1px solid #555;
}

.show-more-btn:hover {
    background-color: #555;
}
