/* ================================ OAKGLOW CLASSIC MC THEME ================================ */
body {
    margin: 0;
    padding: 30px 0 0 0;
    background-image: url("https://p.novaskin.me/4769776478453760.png");
    background-repeat: repeat;
    /* tile */
    background-position: top left;
    /* align like a texture */
    background-size: auto;
    /* keep original resolution */
    image-rendering: pixelated;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #222;
}

/* wool side strips */
#wrapper {
    width: 1000px;
    margin: 0 auto;
    background: url("https://uncovery.me/wp-content/themes/twentyeleven-child/images/sidefill.png") repeat-y left, url("https://uncovery.me/wp-content/themes/twentyeleven-child/images/sidefill.png") repeat-y right, #ffffff;
    background-position: left 0 top 0, right 0 top 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

/* header image */
.header-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* ================================ VOTE PAGE =============================== */
.vote-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.vote-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    padding: 15px;
    width: 220px;
    text-align: center;
}

.vote-logo {
    max-width: 100%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.vote-button {
    display: inline-block;
    padding: 8px 12px;
    background: #2ecc71;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    margin-top: 8px;
}

.vote-button:hover {
    background: #27ae60;
}

/* ================================ LEADERBOARD STYLE ================================ */
.leaderboard {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leader-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.leader-item:last-child {
    border-bottom: none;
}

.leader-rank {
    font-weight: bold;
    width: 30px;
    font-size: 16px;
}

.leader-head {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
}

.leader-name {
    font-weight: bold;
}

.leader-votes {
    margin-left: auto;
    color: #555;
}

#navbar {
    position: relative;
    z-index: 1000;
    background: linear-gradient(#333, #111);
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

#navbar>ul {
    list-style: none;
    margin: 0;
    padding: 0 10px;
    display: flex;
}

#navbar li {
    position: relative;
    padding: 12px 18px;
}

#navbar a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

#navbar a:hover {
    text-decoration: underline;
}

/* dropdown container */
.has-dropdown {
    position: relative;
}

/* hide by default */
.has-dropdown>.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    min-width: 180px;
    border: 1px solid #000;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 9999;
}

/* show only on hover */
.has-dropdown:hover>.dropdown {
    display: block;
}

/* dropdown items */
.dropdown li {
    padding: 10px 12px;
}

.dropdown li a {
    color: #fff;
    text-decoration: none;
    display: block;
}

.dropdown li:hover {
    background: #333;
}

/* little arrow indicator */
.has-dropdown>a::after {
    content: " ▾";
    font-size: 11px;
}

/* content layout */
#content {
    display: flex;
    padding: 20px;
    gap: 25px;
    background: #fff;
}

#main {
    width: 680px;
}

#sidebar {
    width: 260px;
}

.box {
    background: transparent;
    border: 1px solid #bbb;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.05);
}

.box h2 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
}

/* posts */
.post {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.post:last-child {
    border-bottom: none;
}

.post-title {
    font-weight: bold;
    font-size: 16px;
}

.meta {
    font-size: 12px;
    color: #777;
}

.vote-links a {
    display: block;
    margin-bottom: 6px;
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
}

.vote-links a:hover {
    text-decoration: underline;
}

.discord-button {
    display: inline-block;
    padding: 10px 14px;
    background: #5865F2;
    /* Discord blurple */
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 3px;
    margin-top: 8px;
}

.discord-button:hover {
    background: #4752c4;
}

/* ================================ COPY IP EFFECT ================================ */
.copy-link {
    position: relative;
    transition: all 0.2s ease;
}

/* stronger override */
#navbar .copy-link:hover {
    color: #00ff00 !important;
    text-shadow: 0 0 8px #00ff00, 0 0 12px #00ff00;
    text-decoration: none;
}

/* tooltip */
.copy-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid #000;
    z-index: 99999;
}

.copy-link:hover::after {
    opacity: 1;
}

/* footer stone strip */
#footer {
    background: url("/assets/footer.png") repeat-x center;
    height: 60px;
    text-align: center;
    color: #ddd;
    font-size: 12px;
    line-height: 60px;
}

/* ================================ STAFF PAGE ================================ */
.staff-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.staff-card {
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 12px;
    border: 1px solid #ccc;
    width: 100%;
}

.staff-avatar {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
}

.staff-role {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

/* ================================ RULES PAGE ================================ */
.rules-list {
    padding-left: 20px;
    margin-top: 10px;
}

.rules-list li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* ================================ SHOWCASE PAGE ================================ */
.showcase-card {
    background: rgba(255, 255, 255, 0.9);
}

.showcase-header {
    display: flex;
    gap: 15px;
    align-items: center;
}

.showcase-head {
    width: 50px;
    height: 50px;
    image-rendering: pixelated;
}

.showcase-meta {
    font-size: 12px;
    color: #666;
}

.showcase-main {
    width: 100%;
    margin: 12px 0;
    border: 1px solid #ccc;
}

.showcase-gallery {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.showcase-gallery img {
    width: 150px;
    border: 1px solid #ccc;
}

/* ===================================== DARK / LIGHT MODE SYSTEM ===================================== */
body.light-mode #content {
    background: #fff;
}

body.light-mode .box,
body.light-mode .vote-card,
body.light-mode .staff-card,
body.light-mode .showcase-card {
    background: rgba(255, 255, 255, 0.9);
    color: #222;
}

body.light-mode .meta,
body.light-mode .staff-role,
body.light-mode .leader-votes,
body.light-mode .showcase-meta {
    color: #666;
}

/* ===================================== DARK / LIGHT MODE (SAFE OVERRIDES) DOES NOT MODIFY FONTS OR BORDERS ===================================== */
/* LIGHT MODE (default override) */
body.light-mode {
    background-image: url("/assets/backgrounds/light.png");
    background-repeat: repeat;
    background-position: top left;
    background-size: auto;
}

/* DARK MODE */
body.dark-mode {
    background-image: url("/assets/backgrounds/dark.png");
    background-repeat: repeat;
    background-position: top left;
    background-size: auto;
    color: #e5e5e5;
}

/* content background color only */
body.dark-mode #content {
    background: #1a1a1a;
}

/* wrapper center color only */
body.dark-mode #wrapper {
    background: #1a1a1a;
}

/* boxes background only */
body.dark-mode .box,
body.dark-mode .vote-card,
body.dark-mode .staff-card,
body.dark-mode .showcase-card {
    background-color: #2a2a2a;
}

/* text color adjustments only */
body.dark-mode .meta,
body.dark-mode .staff-role,
body.dark-mode .leader-votes,
body.dark-mode .showcase-meta {
    color: #aaa;
}

/* links */
body.dark-mode a {
    color: #66b3ff;
}

/* dropdown background */
body.dark-mode .dropdown {
    background: #111;
}

body.dark-mode .dropdown li:hover {
    background: #222;
}

/* ===================================== DARK MODE BUTTON BOOST ===================================== */
body.dark-mode .vote-button,
body.dark-mode .discord-button {
    background: #00c853;
    /* brighter green */
    color: #ffffff;
}

body.dark-mode .vote-button:hover,
body.dark-mode .discord-button:hover {
    background: #00e676;
    /* lighter on hover */
}

/* subtle glow for visibility */
body.dark-mode .vote-button,
body.dark-mode .discord-button {
    box-shadow: 0 0 6px rgba(0, 255, 120, 0.6);
}