:root {
    /* Light Mode Colors */
    --primary: #20B2AA; /* Light Sea Green */
    --primary-dark: #008B8B; /* Dark Cyan */
    --secondary: #5F9EA0; /* Cadet Blue */
    --dark: #212121;
    --light: #ececec;
    --accent: #40E0D0; /* Turquoise */
    --background: #EEEEEE;
    --card-bg: white;
    --text: #212121;
    --code-bg: #ebfffd;
    --code-text: #2b2b2b;
    --footer-bg: #EEEEEE; /* Slightly darker than background */
    --footer-text: #212121;
    --custom-plugin: #34b63a; /* Custom plugin color */
}

[data-theme="dark"] {
    /* Dark Mode Colors */
    --primary: #20B2AA; /* Light Sea Green */
    --primary-dark: #008B8B; /* Dark Cyan */
    --secondary: #5F9EA0; /* Cadet Blue */
    --dark: #E0E0E0; 
    --light: #2A2A2A;
    --accent: #40E0D0; /* Turquoise */
    --background: #121212;
    --card-bg: #1E1E1E;
    --text: #E0E0E0;
    --code-bg: #222222;
    --code-text: #E0E0E0;
    --footer-bg: #121212; /* Slightly darker than background */
    --footer-text: #E0E0E0;
    --custom-plugin: #34b63a; /* Custom plugin color */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Minecraft', sans-serif;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.server-info {
    background-color: var(--primary-dark);
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 1.1rem;
    border-bottom: 4px solid var(--accent);
}

.server-address {
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.server-address:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

#server-status {
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-online {
    background-color: #4CAF50;
    box-shadow: 0 0 5px #4CAF50;
}

.status-offline {
    background-color: #F44336;
    box-shadow: 0 0 5px #F44336;
}

#player-count {
    margin-left: 5px;
    font-weight: bold;
}

.theme-toggle {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    margin-left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.webmap-button, .artmap-button {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0 10px;
    display: inline-block;
}

.webmap-button:hover, .artmap-button:hover {
    background-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    color: white;
}

.sun-icon, .moon-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body:not([data-theme="dark"]) .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

body:not([data-theme="dark"]) .moon-icon {
    opacity: 1;
    transform: rotate(0);
}

body[data-theme="dark"] .sun-icon {
    opacity: 1;
    transform: rotate(0);
}

body[data-theme="dark"] .moon-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

.content {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tabs {
    display: flex;
    background-color: var(--light);
    border-bottom: 2px solid var(--primary);
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    opacity: 0.7;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.tab-btn:hover {
    opacity: 1;
    background-color: rgba(76, 175, 80, 0.1);
}

.tab-btn.active {
    opacity: 1;
    color: var(--primary-dark);
    border-bottom: 3px solid var(--primary-dark);
    margin-bottom: -2px;
}

.tab-content {
    padding: 2rem;
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background-color: var(--light);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.rules-list {
    list-style-type: none;
}

.rules-list li {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--light);
    border-radius: 4px;
    border-left: 4px solid var(--accent);
}

.rules-list li strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 0.3rem;
}

/* New Plugin Grid Layout */
.plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plugin-card {
    background-color: var(--light);
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    border-left: 4px solid var(--secondary);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.plugin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.plugin-card h3 {
    margin-bottom: 0.5rem;
}

.plugin-card h3 a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.plugin-card h3 a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.custom-plugin-card {
    background-color: var(--light);
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    border-left: 4px solid var(--custom-plugin);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.custom-plugin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.custom-plugin-card h3 {
    color: var(--custom-plugin);
    margin-bottom: 0.5rem;
}

.custom-plugin-card h3 a {
    color: var(--custom-plugin);
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-plugin-card h3 a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.custom-plugin-card h4 {
    color: var(--dark);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.plugin-commands {
    background-color: var(--code-bg);
    color: var(--code-text);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-family: monospace;
    transition: all 0.3s ease;
    flex-grow: 1;
}

.step-guide {
    counter-reset: step-counter;
    margin: 2rem 0;
}

.step {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 60px;
    min-height: 50px;
}

.step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    color: var(--primary-dark);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--accent);
    opacity: 0.9;
}

a {
    display: inline-block;
    margin: 0;
    color: var(--primary-dark);
    text-decoration: none;
    transition: transform 0.3s ease;
}

a:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Responsive styles */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .tab-btn.active {
        border-bottom: 3px solid var(--primary-dark);
    }
    
    .feature-list, .plugin-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
}