

/* CSS Custom Properties */
:root {
    /* Primary Theme Colors */
    --accent-color: #774caf;
    --link-color: #c085e7;
    --link-visited: #DDA0DD;
    
    /* Background Colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-tertiary: #333;
    --bg-quaternary: #444;
    --bg-code: #222;
    
    /* Border Colors */
    --border-primary: #444;
    --border-secondary: #555;
    --border-tertiary: #666;
    
    /* Text Colors */
    --text-primary: #e0e0e0;
    --text-secondary: #ddd;
    --text-tertiary: #ccc;
    --text-quaternary: #aaa;
    --text-muted: #888;
    --text-white: white;
    
    /* Status Colors */
    --status-online: #4CAF50;
    --status-offline: #f44336;
    --status-online-text: #a7ff75;
    --status-offline-text: #ff4444;
    --status-checking-text: #ffaa44;
    
    /* Interactive Colors */
    --hover-bg: #555;
    --active-bg: #333;
    --button-bg: #444;
    --button-border: #666;
    --button-text: #ddd;
    --button-hover-text: #fff;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
}

/* Header */
.header {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.header h1 {
    color: var(--text-white);
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Title Image */
.title-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    max-height: 120px;
}

.nav {
    font-size: 13px;
    margin-bottom: 15px;
}

.nav a {
    color: var(--link-color);
    text-decoration: none;
    margin: 0 5px;
}

.nav a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

/* Server Info */
.server-info {
    margin-top: 15px;
    font-size: 13px;
}

.server-status {
    margin-bottom: 8px;
}

.server-ip {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.server-ip strong {
    color: var(--text-white);
    font-weight: bold;
}

.server-version {
    color: var(--text-secondary);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-tertiary);
    display: none; /* Hidden - dot removed */
    margin-right: 5px;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background-color: var(--status-online);
}

.status-dot.offline {
    background-color: var(--status-offline);
}

/* Status and Players labels - white like Version */
.status-label,
.players-label {
    color: var(--text-white);
    font-weight: bold;
    font-size: 13px;
}

/* Status value - colored */
.status-text {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 13px;
}

/* Player info - colored */
.player-info {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 13px;
}

/* Player separator and max players - grey */
.player-separator,
#max-players {
    color: var(--text-muted);
}

.status-text .status-online {
    color: var(--status-online-text);
    font-weight: bold;
}

.status-text .status-offline {
    color: var(--status-offline-text);
    font-weight: bold;
}

.status-text .status-checking {
    color: var(--status-checking-text);
    font-weight: bold;
}

#player-count {
    color: var(--accent-color);
    font-weight: bold;
}

#max-players {
    color: var(--text-quaternary);
    font-weight: normal;
}

#server-ip-address {
    color: var(--accent-color);
    font-family: monospace;
    font-weight: bold;
    background-color: var(--bg-code);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border-primary);
}

#server-version {
    color: var(--link-color);
    font-family: monospace;
}

/* Welcome Box */
.welcome-box {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.welcome-box h2 {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.welcome-box p {
    margin-bottom: 15px;
    color: var(--text-tertiary);
}

/* Alert Box */
.alert-box {
    background-color: #2a2520;
    border: 1px solid #5a5040;
    border-left: 4px solid #cc8800;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 4px;
}

.alert-box h3 {
    color: #cc8800;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: bold;
}

.alert-box p {
    margin: 0;
    color: #c4b896;
    font-size: 14px;
}

/* Content Sections */
.content-section {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    margin-bottom: 20px;
    padding: 0;
}

.content-section:hover {
    border-color: var(--border-tertiary);
}

.content-section h2 {
    background-color: var(--bg-quaternary);
    color: var(--accent-color);
    padding: 12px 20px;
    margin: 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border-secondary);
}

.content-section h3 {
    color: var(--text-white);
    padding: 15px 20px 10px 20px;
    margin: 0;
    font-size: 16px;
}

.content-section > p,
.content-section > ol,
.content-section > .join-info {
    padding: 15px 20px;
}

/* Wiki-specific styles */
.wiki-section {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-primary);
}

.wiki-section:last-child {
    border-bottom: none;
}

.wiki-section h4 {
    color: var(--link-color);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: bold;
}

.wiki-section ul {
    margin: 0;
    padding-left: 20px;
}

.wiki-section li {
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.wiki-section code {
    background-color: var(--bg-code);
    color: var(--accent-color);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
}

/* Wiki navigation - clean tree style */
.wiki-nav {
    list-style: none !important;
    margin: 0;
    padding: 0;
    font-family: monospace;
}

/* Top level items - no tree lines, align with headings */
.wiki-nav > li {
    position: relative;
    padding-left: 0;
    margin: 4px 0;
}

.wiki-nav > li::before,
.wiki-nav > li::after {
    display: none;
}

.wiki-nav > li > a {
    color: var(--text-white);
    font-weight: bold;
}

/* Nested items - show tree lines */
.wiki-nav ul li {
    position: relative;
    padding-left: 20px;
    margin: 4px 0;
}

.wiki-nav ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 50%;
    border-left: 1px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

.wiki-nav ul li::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    bottom: -4px;
    border-left: 1px solid var(--accent-color);
}

.wiki-nav ul li:last-child::after {
    display: none;
}

.wiki-nav ul {
    list-style: none !important;
    margin: 4px 0 0 0;
    padding-left: 20px;
}

.wiki-nav li {
    margin: 8px 0;
    font-size: 14px;
}

.wiki-nav a {
    color: var(--link-color);
    text-decoration: underline;
}

.wiki-nav a:hover {
    color: var(--accent-color);
}

/* Nested subsections */
.wiki-nav ul {
    list-style: circle;
    margin: 5px 0 0 0;
    padding-left: 25px;
}

.wiki-nav ul li {
    margin: 4px 0;
    font-size: 13px;
}

.wiki-nav ul a {
    color: var(--text-quaternary);
    font-size: 13px;
}

.wiki-nav ul a:hover {
    color: var(--accent-color);
}

/* Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px;
    margin-right: 30px;
}

.info-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-primary);
    vertical-align: top;
}

.info-table td:first-child {
    width: 150px;
    color: var(--text-quaternary);
}

.info-table td:last-child {
    color: var(--text-primary);
}

/* Rules List */
.rules-list {
    margin: 15px;
    padding-left: 20px;
}

.rules-list li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Join Info */
.join-info {
    display: block;
}

.server-details,
.join-steps {
    margin-bottom: 20px;
}

.server-details h3,
.join-steps h3 {
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: bold;
}

.join-steps ol {
    padding-left: 20px;
}

.join-steps ol li {
    margin-bottom: 5px;
    color: var(--text-secondary);
}

/* Code and Copy Button */
code {
    background-color: var(--bg-code);
    color: var(--link-color);
    padding: 2px 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    border: 1px solid var(--border-primary);
}

.copy-btn {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: 1px solid var(--button-border);
    padding: 2px 6px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 5px;
}

.copy-btn:hover {
    background-color: var(--hover-bg);
    color: var(--button-hover-text);
}

.copy-btn:active {
    background-color: var(--active-bg);
}

.copy-btn.copied {
    background-color: var(--accent-color);
    color: var(--text-white);
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-primary);
}

.footer hr {
    border: none;
    border-top: 1px solid var(--border-primary);
    margin-bottom: 15px;
}

.footer a {
    color: var(--link-color);
    text-decoration: none;
}

.footer a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

a:visited {
    color: var(--link-visited);
}

/* Text Styling */
strong {
    color: var(--text-white);
}

em {
    color: var(--text-quaternary);
    font-style: italic;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Store Styles */
.store-content {
    padding: 40px 20px 20px 20px; /* Added more top padding to separate the text at the top */
}

.store-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px; /* Further reduced gap between buttons to make them even more condensed */
    margin-bottom: 20px;
    margin-top: 15px; /* Added some space between text and buttons */
}

.store-category {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    padding: 6px 10px; /* Further reduced padding inside buttons */
    cursor: pointer;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px; /* Reduced font size for more condensed appearance */
    transition: all 0.2s;
    margin: 0; /* Removed any default margins */
}

.store-category:hover {
    background-color: var(--hover-bg);
    border-color: var(--accent-color);
    color: var(--text-white);
}

.store-category.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-white);
}

.store-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.store-item {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    padding: 15px;
    border-radius: 4px;
    transition: all 0.2s;
}

.store-item:hover {
    border-color: var(--border-tertiary);
    transform: translateY(-2px);
}

.store-item h3 {
    color: var(--accent-color);
    font-size: 16px;
    margin-bottom: 10px;
    padding: 0;
    border-bottom: 1px solid var(--border-primary);
    padding-bottom: 8px;
}

.store-item-price {
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 15px;
}

.store-item-desc {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.4;
}

.store-item-features {
    margin-bottom: 15px;
    font-size: 13px;
}

.store-item-features li {
    color: var(--text-tertiary);
    margin-bottom: 4px;
    list-style-type: none;
    position: relative;
    padding-left: 15px;
}

.store-item-features li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.buy-button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: 1px solid var(--button-border);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    border-radius: 3px;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    min-height: 44px;
    box-sizing: border-box;
}

.buy-button:hover {
    background-color: var(--hover-bg);
    color: var(--button-hover-text);
    border-color: var(--accent-color);
}

.buy-button:active {
    background-color: var(--active-bg);
}

.purchase-button {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    background-color: var(--accent-color);
    color: var(--text-white);
    border: 1px solid var(--accent-color);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    border-radius: 3px;
    transition: all 0.2s;
    margin-top: 10px;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    min-height: 44px;
    box-sizing: border-box;
}

.purchase-button:hover {
    background-color: var(--link-color);
    border-color: var(--link-color);
    transform: translateY(-1px);
}

.purchase-button:active {
    transform: translateY(0);
}

.coming-soon-button {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-secondary);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    border-radius: 3px;
    cursor: default;
    opacity: 0.8;
    transition: all 0.2s;
    text-align: center;
    display: inline-block;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    min-height: 44px;
    box-sizing: border-box;
}

.coming-soon-button:hover {
    opacity: 1;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--border-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .nav {
        font-size: 12px;
    }
    
    .nav a {
        display: inline-block;
        margin: 2px;
    }
    
    .info-table {
        font-size: 13px;
        margin: 10px;
    }
    
    .info-table td {
        padding: 6px 8px;
    }
    
    .info-table td:first-child {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 5px;
        padding: 10px;
    }
    
    .header {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 18px;
    }
    
    .welcome-box,
    .content-section > p,
    .content-section > ol,
    .content-section > .join-info {
        padding: 10px;
    }
    
    .info-table {
        font-size: 12px;
        margin: 5px;
    }
    
    .info-table td:first-child {
        width: 100px;
    }
}