:root {
    --mc-bg: #222222;
    --mc-card: #4d4d4d;
    --mc-border-light: #737373;
    --mc-border-dark: #2a2a2a;
    --mc-text: #ffffff;
    --mc-highlight: #ffff55; /* Minecraft Yellow */
    --mc-red: #ff5555;
    --mc-green: #55ff55;
    --mc-aqua: #55ffff;
    --mc-gold: #ffaa00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Use a blocky, readable retro font */
    font-family: 'VT323', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--mc-bg);
    /* Simple dirt pattern overlay using CSS gradients */
    background-image: 
        repeating-linear-gradient(45deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 10px, transparent 10px, transparent 20px),
        repeating-linear-gradient(-45deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 10px, transparent 10px, transparent 20px);
    background-attachment: fixed;
    color: var(--mc-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background-color: #111;
    border-bottom: 4px solid var(--mc-border-dark);
}

.logo {
    font-size: 3rem;
    color: var(--mc-text);
    text-shadow: 2px 2px 0 #000;
}

.logo span {
    color: var(--mc-red);
}

nav {
    display: flex;
    gap: 1rem;
}

/* Minecraft Style Button */
.mc-btn, a.mc-btn {
    display: inline-block;
    text-decoration: none;
    background-color: #8b8b8b;
    border: 4px solid;
    border-color: #ffffff #555555 #555555 #ffffff;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    text-shadow: 2px 2px 0 #333;
}

.mc-btn:hover {
    background-color: #a0a0a0;
}

.mc-btn:active, .mc-btn.active {
    border-color: #555555 #ffffff #ffffff #555555;
    background-color: #666666;
    color: var(--mc-highlight);
}

main {
    flex: 1;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--mc-highlight);
    text-shadow: 4px 4px 0 #000;
    line-height: 1.2;
}

.admin-hero h1 {
    color: var(--mc-red);
}

.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Minecraft Item/Inventory Style Card */
.mc-card {
    background-color: #c6c6c6;
    border: 6px solid;
    border-color: #ffffff #555555 #555555 #ffffff;
    padding: 2rem;
    color: #000;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.5);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.mc-card h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 0 #fff;
    border-bottom: 4px dashed #555;
    padding-bottom: 1rem;
}

.title-red { color: #aa0000; }
.title-green { color: #00aa00; }
.title-blue { color: #00aaaa; }
.title-gold { color: #ffaa00; }

.big-point {
    font-size: 2rem;
    color: #333;
    background-color: var(--mc-highlight);
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border: 2px solid #000;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 #000;
}

.mc-card p {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.mc-card p strong {
    color: #aa0000;
    font-weight: bold;
}

.cmd-list {
    list-style: none;
}

.cmd-list li {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: #e0e0e0;
    padding: 0.5rem;
    border: 2px solid #555;
}

.cmd-name {
    color: #0000aa;
    font-weight: bold;
}

code {
    background: #333;
    color: var(--mc-aqua);
    padding: 0.2rem 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #111;
    border-top: 4px solid var(--mc-border-light);
    font-size: 1.5rem;
    color: #aaa;
}

/* Download Section */
.download-section {
    text-align: center;
    margin: 4rem 0 2rem 0;
}

.download-btn {
    font-size: 3rem;
    padding: 1rem 4rem;
    color: #ffffff;
    border-color: #ffffaa #888800 #888800 #ffffaa;
    background-color: var(--mc-gold);
    animation: glowpulse 1.5s infinite alternate;
    text-shadow: 2px 2px 0 #000;
}

.download-btn:hover {
    background-color: #ffcc00;
    color: #fff;
}

@keyframes glowpulse {
    from {
        box-shadow: 0 0 10px var(--mc-highlight), inset 0 0 10px rgba(255,255,85,0.5);
    }
    to {
        box-shadow: 0 0 30px var(--mc-highlight), 0 0 50px var(--mc-highlight), inset 0 0 20px rgba(255,255,85,0.8);
    }
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    text-align: center;
    max-width: 600px;
    width: 90%;
    animation: dropIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dropIn {
    from { transform: translateY(-100px) scale(0.8); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.2rem 0.8rem;
    font-size: 2rem;
}

.wanted-poster {
    background-color: #d2b48c; /* Parchment color */
    border: 4px solid #8b4513;
    padding: 2rem;
    margin-top: 1rem;
    box-shadow: inset 0 0 20px rgba(139, 69, 19, 0.5);
    color: #3e1f00;
}

.wanted-poster .big-point {
    background-color: transparent;
    border: none;
    box-shadow: none;
    font-size: 3rem;
    border-bottom: 4px solid #3e1f00;
}

.creator-img {
    width: 250px;
    height: 250px;
    border: 6px solid #3e1f00;
    image-rendering: pixelated;
    margin-bottom: 1rem;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.bounty-text {
    font-size: 2.5rem !important;
    color: #aa0000 !important;
    font-weight: bold;
    margin-top: 1rem;
    text-shadow: 2px 2px 0 rgba(255,255,255,0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 12px;
    }
    header {
        flex-direction: column;
        gap: 1.5rem;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .grid-section {
        grid-template-columns: 1fr;
    }
    .creator-img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 10px;
    }
    nav {
        flex-direction: column;
        width: 100%;
    }
    .mc-btn, a.mc-btn {
        width: 100%;
        display: block;
        text-align: center;
    }
    .creator-img {
        width: 150px;
        height: 150px;
    }
}
