/* Reset & Body */
body {
    margin: 0;
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(to bottom, #1a1a1a, #2e3b28);
    color: #f0f0f0;
    text-align: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Canvas for particles */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Header */
header {
    backdrop-filter: blur(8px);
    background: rgba(30,50,30,0.85);
    padding: 20px 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-text {
    margin: 0;
    font-size: 28px;
    color: #a8ffb0;
    text-shadow: 0 0 8px rgba(76, 255, 106, 0.7);
}

/* Buttons */
nav {
    margin-top: 10px;
}

nav button {
    margin: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    background: #3fa34d;
    color: white;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 6px 0 #2e7031;
    transition: all 0.2s ease-in-out;
}

nav button:hover {
    background: #4fcf5d;
    transform: translateY(-3px);
    box-shadow: 0 8px 14px rgba(0,0,0,0.4);
}

nav button:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #2e7031;
}

/* Sections */
.section {
    display: none;
    padding: 80px 20px;
}

.section.active {
    display: block;
}

/* Hero */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.hero-content {
    background: rgba(40,70,40,0.85);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #1d3b1f;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

/* Server Logo */
.server-logo {
    width: 150px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 12px rgba(0,0,0,0.7));
}

.gradient-text {
    background: linear-gradient(45deg, #7fff5c, #a8ffb0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

/* Info Box */
.info-box {
    margin-top: 15px;
}

/* Clickable Server IP */
.click-to-copy {
    cursor: pointer;
    color: #a8ffb0;
    text-decoration: underline;
}

.click-to-copy:hover {
    color: #7fdc6c;
}

/* Shop Section */
.shop-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 30px;
    justify-items: stretch; /* Make cards stretch evenly */
    margin-top: 40px;
}

/* Shop Cards */
.shop-category {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Stretch content evenly */
    transition: all 0.3s ease-in-out;
    border-radius: 12px;
    border: 2px solid transparent;
    background: rgba(47,93,49,0.85);
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    padding: 20px;
    min-height: 400px; /* Ensures short cards match height of tallest */
}

.shop-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,255,100,0.4);
    border-image: linear-gradient(45deg, #7fff5c, #a8ffb0) 1;
}

.shop-category h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.shop-category button {
    display: block;
    margin: 12px auto 0;
    padding: 10px 22px;
    border-radius: 6px;
    border: none;
    background: #6bbf59;
    color: white;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 6px 0 #4c8f3f;
}

.shop-category button:hover {
    background: #7fdc6c;
    transform: translateY(-3px);
    box-shadow: 0 8px 14px rgba(0,0,0,0.4);
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 20px;
    font-size: 10px;
    color: #c0ffc0;
    backdrop-filter: blur(6px);
    background: rgba(47,93,49,0.7);
    border-top: 1px solid #1d3b1f;
    border-radius: 0 0 10px 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(47,93,49,0.9);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 10px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid #1d3b1f;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
}
