/* ==========================================================================
   1. Reset and Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background-color: #0b0b0e; /* Deep dark space background */
    color: #ffffff;
}

/* ==========================================================================
   2. Header / Navigation
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: #111116;
    border-bottom: 2px solid #00f0ff; /* Neon Cyan line */
}

.logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

nav a {
    color: #8e8e93;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover, nav a.active {
    color: #00f0ff;
}

/* ==========================================================================
   3. Hero Section (General & Store)
   ========================================================================== */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(rgba(11, 11, 14, 0.85), #0b0b0e);
}

.hero h1 {
    font-size: 45px;
    margin-bottom: 12px;
}

.hero h1 span {
    background: linear-gradient(45deg, #00f0ff, #7000ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: #8e8e93;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.server-ip {
    display: inline-block;
    background: linear-gradient(45deg, #00f0ff, #7000ff);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   4. Store Layout & Sidebar
   ========================================================================== */
.store-container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 30px;
}

.sidebar {
    flex: 1;
    background-color: #111116;
    padding: 20px;
    border-radius: 12px;
    height: fit-content;
    border: 1px solid #1c1c24;
}

.sidebar h3 {
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #1c1c24;
    padding-bottom: 10px;
    color: #00f0ff;
}

.cat-btn {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #8e8e93;
    padding: 12px;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: 0.2s;
    font-weight: 600;
}

.cat-btn:hover, .cat-btn.active {
    background: linear-gradient(45deg, #00f0ff, #7000ff);
    color: white;
}

/* ==========================================================================
   5. Products Grid & Cards
   ========================================================================== */
.products-grid {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: #111116;
    border: 1px solid #1c1c24;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #00f0ff;
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.1);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #7000ff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.card img {
    margin-bottom: 15px;
    border-radius: 10px;
}

.card h2 {
    font-size: 22px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.price {
    font-size: 24px;
    color: #00f0ff;
    font-weight: 700;
    margin-bottom: 12px;
}

.desc {
    font-size: 14px;
    color: #8e8e93;
    margin-bottom: 20px;
    min-height: 60px;
    line-height: 1.5;
}

.buy-btn {
    width: 100%;
    background-color: #1c1c24;
    color: white;
    border: 1px solid #2c2c38;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.buy-btn:hover {
    background: linear-gradient(45deg, #00f0ff, #7000ff);
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(0, 240, 255, 0.2);
}

/* ==========================================================================
   6. Home Page Extra Styles
   ========================================================================== */
.welcome-badge {
    background: rgba(0, 240, 255, 0.1);
    color: #00f0ff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.home-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.15) 0%, rgba(11, 11, 14, 1) 70%);
}

.hero-content h1 {
    font-size: 55px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    color: #8e8e93;
    max-width: 650px;
    margin: 0 auto 35px auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.ip-btn {
    background: linear-gradient(45deg, #00f0ff, #7000ff);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.ip-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

.store-btn {
    background: #111116;
    color: white;
    text-decoration: none;
    border: 1px solid #1c1c24;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-btn:hover {
    background: #1c1c24;
    border-color: #00f0ff;
    transform: translateY(-3px);
}

.features-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.section-title h2 span, .hero-content h1 span {
    background: linear-gradient(45deg, #00f0ff, #7000ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: #8e8e93;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    background: #111116;
    border: 1px solid #1c1c24;
    padding: 4px 30px 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.feature-box:hover {
    border-color: #7000ff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(112, 0, 255, 0.1);
}

.feature-icon {
    font-size: 40px;
    color: #00f0ff;
    margin-bottom: 20px;
    margin-top: 30px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.feature-box h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-box p {
    color: #8e8e93;
    font-size: 15px;
    line-height: 1.5;
}

/* ==========================================================================
   7. Online Players Status Section
   ========================================================================== */
.status-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

.status-card {
    background-color: #111116;
    border: 1px solid #1c1c24;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.status-card h2 {
    font-size: 32px;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #00f0ff, #7000ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.server-ip-display {
    color: #8e8e93;
    font-size: 16px;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: #1c1c24;
    border: 1px solid #2c2c38;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    font-size: 14px;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.stat-value.loading { color: #ffaa00; }
.stat-value.online { color: #00ff66; text-shadow: 0 0 10px rgba(0, 255, 102, 0.2); }
.stat-value.offline { color: #ff3333; }

.player-list-section {
    text-align: left;
    border-top: 1px solid #1c1c24;
    padding-top: 30px;
}

.player-list-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #00f0ff;
}

.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.player-head-card {
    background: #16161e;
    border: 1px solid #2c2c38;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
}

.player-head-card:hover {
    border-color: #00f0ff;
    transform: scale(1.03);
}

.player-head-card img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.player-head-card span {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-players {
    color: #8e8e93;
    font-size: 15px;
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    background: #16161e;
    border-radius: 8px;
    border: 1px dashed #2c2c38;
}

/* ==========================================================================
   8. Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .store-container {
        flex-direction: column;
    }
    header {
        flex-direction: column;
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 38px;
    }
    .hero-content p {
        font-size: 15px;
    }
}
