/* --- Basic Reset & Font --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #fff;
    background-image: url('/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: -1;
}

a { 
    text-decoration: none; 
    color: inherit; 
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(8px);
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 1.8em;
    font-weight: 700;
    color: #e53935;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
}

.nav-menu li a {
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 24px 0;
    border-bottom: 3px solid transparent;
}

.nav-menu li a:hover {
    color: #e53935;
}
.nav-menu li a.active {
    color: #e53935;
    border-bottom-color: #e53935;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-user {
    font-weight: 600;
}

.action-button {
    padding: 10px 20px;
    background-color: #e53935;
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: 1px solid #e53935;
}
.action-button:hover {
    background-color: #c62828;
}
.action-button.alt {
    background-color: transparent;
    border: 1px solid #e53935;
}
.action-button.alt:hover {
    background-color: #e53935;
}

/* --- Main Content --- */
main {
    flex-grow: 1;
}

/* --- Hero Section (Home) --- */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    min-height: calc(100vh - 70px - 97px);
}

.hero-content h1 {
    font-size: clamp(2.5em, 5vw, 3.5em);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2em;
    color: #c0c0c0;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    padding: 15px 30px;
    font-size: 1.2em;
}

/* --- General Page Styles --- */
.page-content {
    padding: 60px 5%;
}
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    background-color: rgba(18,18,18,0.85); 
    padding: 30px 40px; 
    border-radius: 8px; 
    border: 1px solid rgba(255,255,255,0.1);
}
.container > h1 {
    margin-bottom: 30px;
    border-bottom: 2px solid #e53935;
    padding-bottom: 15px;
    display: inline-block;
}

/* --- Rank Page --- */
.sub-nav { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; border-bottom: 1px solid #444; padding-bottom: 15px; }
.sub-nav a { padding: 10px 15px; color: #a0a0a0; font-weight: 600; border-radius: 5px; transition: all 0.3s ease; }
.sub-nav a:hover { color: #fff; background-color: #333; }
.sub-nav a.active { color: #fff; background-color: #e53935; }
.rank-table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #333; }
thead th { background-color: #252525; font-weight: 700; color: #e53935; }
tbody tr:nth-child(even) { background-color: rgba(0,0,0,0.2); }
tbody tr:hover { background-color: #2a2a2a; }
td:first-child, th:first-child { font-weight: bold; text-align: center; }

/* --- News Page --- */
.news-container { display: flex; flex-direction: column; gap: 40px; }
.news-item { background-color: rgba(0,0,0,0.2); padding: 25px; border-radius: 8px; border-left: 4px solid #e53935; }
.news-item h2 { margin-bottom: 10px; color: #e53935; }
.news-item .date { display: block; font-size: 0.9em; color: #a0a0a0; margin-bottom: 15px; }
.news-item p { line-height: 1.7; }
.news-item ul { padding-left: 20px; margin-top: 10px; }

/* --- Server Info Page --- */
.server-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.info-card { background-color: rgba(0,0,0,0.2); padding: 25px; border-radius: 8px; }
.info-card.status-card { text-align: center; }
.info-card h3 { color: #e53935; margin-bottom: 15px; font-size: 1.5em; }
.info-card ul { list-style: none; padding: 0; }
.info-card ul li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.info-card ul li::before { content: '✓'; color: #e53935; position: absolute; left: 0; font-weight: bold; }
.status-value { font-size: 2.5em; font-weight: 700; margin: 10px 0; }
.status-value.online { color: #4CAF50; }
.status-value.offline { color: #F44336; }
.status-label { font-size: 1em; color: #a0a0a0; }

.time-info { margin-top: 10px; }
.time-clock {
    font-size: 1.8em;
    font-weight: 600;
    color: #f0f0f0;
    letter-spacing: 2px;
    margin: 5px 0;
}


/* --- Contact Page --- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; text-align: center; }
.contact-card { background: rgba(0,0,0,0.2); padding: 30px; border-radius: 8px; transition: transform 0.3s ease; }
.contact-card:hover { transform: translateY(-5px); }
.contact-card i { font-size: 3em; color: #e53935; margin-bottom: 20px; }
.contact-card h3 { margin-bottom: 15px; font-size: 1.5em; }
.contact-card p a { color: #29b6f6; font-weight: 600; }
.contact-card p a:hover { text-decoration: underline; }

/* --- Terms Page --- */
.terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.language-section h2 { font-size: 1.8em; border-bottom: 2px solid #e53935; padding-bottom: 10px; margin-bottom: 20px; }
.language-section h3 { font-size: 1.2em; color: #f0f0f0; margin-top: 25px; }
.language-section p, .language-section li { font-size: 1em; line-height: 1.7; color: #a0a0a0; }
.language-section ul { padding-left: 20px; }
.language-section strong { color: #f0f0f0; }

@media (max-width: 820px) {
    .terms-grid { grid-template-columns: 1fr; }
}


/* --- Footer --- */
.site-footer {
    background-color: rgba(18, 18, 18, 0.9);
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}
.footer-links { margin-bottom: 15px; }
.footer-links a { margin: 0 15px; color: #a0a0a0; transition: color 0.3s ease; }
.footer-links a:hover { color: #fff; }
.copyright { color: #757575; font-size: 0.9em; }

