/* Global Styles from original file. */
body {
    background-color: #1a1a2e;
    /* Dark background requested */
    /* background-image: url("https://www.transparenttextures.com/patterns/dirty-old-shirt.png"); */
    /* Commenting out pattern to ensure color visibility */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #ffffff;
    /* Global white text */
}

/* Custom Navbar Styles */
.custom-navbar {
    background: #1a1a2e;
    /* Matches body */
    padding: 10px 0;
    border-bottom: 1px solid #2a2a40;
}

.custom-navbar .navbar-brand {
    display: none;
}

.nav-btn-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Base button style for navbar */
.nav-btn {
    background: transparent;
    border: 1px solid #444;
    color: #aeaeae;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Specific Button Colors based on the image */
.btn-support {
    border-color: #f0ad4e;
    color: #f0ad4e;
}

.btn-support:hover {
    background: rgba(240, 173, 78, 0.1);
    color: #ffc107;
}

.btn-lookup {
    border-color: #17a2b8;
    color: #17a2b8;
}

.btn-lookup:hover,
.btn-lookup[aria-expanded="true"] {
    background: rgba(23, 162, 184, 0.1);
    color: #0dcaf0;
}

.btn-cafe {
    border-color: #d9534f;
    color: #d9534f;
}

.btn-cafe:hover {
    background: rgba(217, 83, 79, 0.1);
    color: #ff6b6b;
}

.btn-download-nav {
    border-color: #5cb85c;
    color: #5cb85c;
}

.btn-download-nav:hover {
    background: rgba(92, 184, 92, 0.1);
    color: #2ed573;
}

.btn-event {
    border-color: #6f42c1;
    color: #a569bd;
}

.btn-event:hover {
    background: rgba(111, 66, 193, 0.1);
    color: #d2b4de;
}

.btn-ranking {
    border-color: #0dcaf0;
    color: #0dcaf0;
}

.btn-ranking:hover,
.btn-ranking[aria-expanded="true"] {
    background: rgba(13, 202, 240, 0.1);
    color: #33d9b2;
}

/* Right side user buttons */
.btn-register-nav {
    border-color: #ffc107;
    color: #ffc107;
}

.btn-register-nav:hover {
    background: rgba(255, 193, 7, 0.1);
    color: #ffd700;
}

.btn-login-nav {
    border-color: #17a2b8;
    color: #17a2b8;
}

.btn-login-nav:hover {
    background: rgba(23, 162, 184, 0.1);
    color: #0dcaf0;
}

/* Dropdown styling for dark theme */
.dropdown-menu-dark-custom {
    background-color: #252538;
    border: 1px solid #444;
}

.dropdown-menu-dark-custom .dropdown-item {
    color: #cecece;
}

.dropdown-menu-dark-custom .dropdown-item:hover {
    background-color: #353550;
    color: #fff;
}

/* Main Container & Sections */
/* Navbar Container for Alignment */
.container-nav {
    max-width: 1000px;
    margin: 0 auto;
    padding-left: var(--bs-gutter-x, .75rem);
    padding-right: var(--bs-gutter-x, .75rem);
}

.container-main {
    max-width: 1000px;
    margin: 30px auto;
}

/* Server Info Section */
/* Server Info Compact */
.server-info-compact {
    background: linear-gradient(135deg, #2a2a40 0%, #1a1a2e 100%);
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
    padding: 12px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    flex-wrap: wrap;
    /* Allow wrap on mobile */
}

.server-info-compact .info-label {
    font-weight: bold;
    color: #0dcaf0;
    text-transform: uppercase;
    font-size: 15px;
    white-space: nowrap;
}

.server-info-compact .info-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.server-info-compact .info-content span {
    font-weight: 500;
}

.server-info-compact .divider {
    color: #666;
    font-size: 12px;
}

/* Old Server Info - Removed/Commented out if no longer used */
/* .server-info { ... } */

/* Social Media Buttons */
.social-section {
    margin-bottom: 40px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.social-btn i {
    font-size: 32px;
}

.btn-fanpage {
    background: #1877f2;
}

.btn-discord {
    background: #5865F2;
}

.btn-youtube {
    background: #FF0000;
}

/* News Section Updated */
.news-section {
    background: #1a1a2e;
    /* Same tone */
    border: 1px solid #2a2a40;
    /* Subtle border for definition */
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    /* White title including Community */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.news-item {
    padding: 20px 0;
    border-bottom: 1px solid #2a2a40;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    color: #fd7e14;
    /* Orange text requested */
    margin-bottom: 8px;
}

.news-date {
    font-size: 12px;
    color: #adb5bd;
    margin-bottom: 10px;
}

.news-content {
    font-size: 14px;
    color: #fd7e14;
    /* Orange text requested */
    opacity: 0.9;
    line-height: 1.6;
}

/* Download Section (Retained) */
.download-section {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.download-section h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}

.btn-download {
    background: #fff;
    color: #11998e;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Footer Updated */
.footer {
    background: #1a1a2e;
    border-top: 1px solid #2a2a40;
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    /* Prominent white text */
}

.footer p {
    margin-bottom: 5px;
}

.footer small {
    font-size: 13px;
    font-weight: 500;
    color: #e9ecef;
}

/* Slightly distinct for powered by */

/* Responsiveness */
@media (max-width: 992px) {
    .nav-btn-group {
        justify-content: center;
        margin-bottom: 10px;
    }

    .custom-navbar .container {
        flex-direction: column;
    }
}