/* Basic Resets & Global Styles */
:root {
    --rust-dark-bg: #1a1a1a;
    --rust-light-bg: #2b2b2b;
    --rust-accent-orange: #e07b39;
    --rust-text-light: #f0f0f0;
    --rust-text-gray: #c0c0c0;
    --rust-border-gray: #444;
    --rust-box-shadow: rgba(0, 0, 0, 0.5);
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--rust-text-light);
    background-color: var(--rust-dark-bg);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll due to background effect */
    position: relative;
    min-height: 100vh; /* Ensure footer stays at bottom */
}

/* Background Effects */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://user-images.githubusercontent.com/90184497/242250917-063a537f-5d0b-4613-81b0-27768407842e.png') no-repeat center center / cover; /* Example Rust-themed background image */
    opacity: 0.2; /* Darken and blend with the animation */
    z-index: -2;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(224, 123, 57, 0.05) 0%,
        rgba(26, 26, 26, 0.05) 50%,
        rgba(224, 123, 57, 0.05) 100%
    );
    background-size: 200% 200%;
    animation: panBackground 60s linear infinite;
    z-index: -1;
}

@keyframes panBackground {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}


/* Header */
.server-header {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.5)), url('https://user-images.githubusercontent.com/90184497/242250917-063a537f-5d0b-4613-81b0-27768407842e.png') no-repeat center center / cover; /* Placeholder - consider a distinct header image if you want */
    padding: 40px 20px;
    text-align: center;
    border-bottom: 2px solid var(--rust-accent-orange);
    box-shadow: 0 4px 10px var(--rust-box-shadow);
    position: relative;
    z-index: 10;
}

.server-logo {
    width: 150px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 20px;
    border: 3px solid var(--rust-accent-orange);
    border-radius: 50%; /* If your logo is circular */
    box-shadow: 0 0 15px rgba(224, 123, 57, 0.7);
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    from {
        box-shadow: 0 0 10px rgba(224, 123, 57, 0.5), 0 0 20px rgba(224, 123, 57, 0.2);
    }
    to {
        box-shadow: 0 0 20px rgba(224, 123, 57, 0.8), 0 0 30px rgba(224, 123, 57, 0.4);
    }
}


.server-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5em;
    color: var(--rust-text-light);
    text-shadow: 2px 2px 4px var(--rust-box-shadow);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.server-header .tagline {
    font-size: 1.2em;
    color: var(--rust-text-gray);
    font-style: italic;
}

/* Main Content Container */
.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    display: grid;
    gap: 30px;
}

/* Info Sections */
.info-section {
    background-color: var(--rust-light-bg);
    padding: 30px;
    border: 1px solid var(--rust-border-gray);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--rust-box-shadow);
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--rust-accent-orange), transparent);
}

.info-section h2 {
    font-family: var(--font-heading);
    font-size: 2em;
    color: var(--rust-accent-orange);
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px var(--rust-box-shadow);
    border-bottom: 1px dotted var(--rust-border-gray);
    padding-bottom: 10px;
}

.info-section p {
    margin-bottom: 15px;
    color: var(--rust-text-gray);
}

.info-section ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 15px;
}

.info-section ul li {
    margin-bottom: 10px;
    position: relative;
    color: var(--rust-text-gray);
}

.info-section ul li::before {
    content: "•"; /* Custom bullet point */
    color: var(--rust-accent-orange);
    font-size: 1.2em;
    position: absolute;
    left: -20px;
    top: -2px;
}

.highlight {
    color: var(--rust-accent-orange);
    font-weight: bold;
}

/* Server Details Widget */
.server-details-widget .details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

@media (min-width: 600px) {
    .server-details-widget .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.detail-item {
    background-color: var(--rust-dark-bg);
    padding: 15px 20px;
    border-radius: 5px;
    border: 1px solid var(--rust-border-gray);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-weight: bold;
    color: var(--rust-text-light);
}

.detail-value {
    color: var(--rust-text-gray);
    font-family: var(--font-body);
    font-size: 0.95em;
}

/* Discord Button */
.discord-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #7289DA; /* Discord's primary color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.3em;
    letter-spacing: 1px;
    margin-top: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #5a6ebc;
}

.discord-button:hover {
    background-color: #677BC4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.discord-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
}

.final-message {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    font-style: italic;
    color: var(--rust-accent-orange);
}

/* Footer */
.server-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: var(--rust-dark-bg);
    border-top: 1px solid var(--rust-border-gray);
    color: var(--rust-text-gray);
    font-size: 0.9em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .server-header h1 {
        font-size: 2.5em;
    }
    .server-logo {
        width: 120px;
    }
    .container {
        margin: 20px auto;
        padding: 15px;
    }
    .info-section {
        padding: 20px;
    }
    .info-section h2 {
        font-size: 1.7em;
    }
    .discord-button {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    .discord-icon {
        width: 25px;
        height: 25px;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .server-header h1 {
        font-size: 2em;
    }
    .server-logo {
        width: 100px;
    }
    .server-header .tagline {
        font-size: 1em;
    }
    .info-section h2 {
        font-size: 1.5em;
    }
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .detail-value {
        margin-top: 5px;
        font-size: 0.9em;
    }
}