:root {
    --background-color: #111111;
    --surface-color: #1D1D1D;
    --surface-color-light: #2a2a2a;
    --accent-color: #9d4edd; /* Mor/Purple Accent */
    --text-color: #FFFFFF;
    --text-muted-color: #AAAAAA;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    position: relative; /* Needed for z-index context */
}

.floating-logo {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 100px; /* Adjust size as needed */
    height: 100px; /* Adjust size as needed */
    opacity: 0.15;
    z-index: -1;
    animation: spin 30s linear infinite;
    pointer-events: none; /* So it doesn't block clicks */
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--surface-color);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--surface-color-light);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .social-links a {
    color: var(--text-muted-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.server-ip {
    background-color: var(--surface-color-light);
    display: flex;
    align-items: center;
    border-radius: 5px;
    padding: 0.3rem 0.5rem;
}

#ip-address {
    color: var(--text-color);
    font-weight: 600;
    margin-right: 0.5rem;
}

#copy-ip-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1rem;
}

/* --- Header --- */
header {
    background-color: rgba(29, 29, 29, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}


/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(17, 17, 17, 0.8), rgba(17, 17, 17, 0.95)), url('https://via.placeholder.com/1920x1080.png/111/111?text=') no-repeat center center/cover;
    padding: 6rem 0;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 0 15px rgba(157, 78, 221, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted-color);
    margin: 0.5rem 0 1.5rem 0;
}

.server-status {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.server-status .loading {
    color: var(--text-muted-color);
}

.play-button {
    background-color: var(--accent-color);
    color: var(--background-color);
    font-size: 1.5rem;
    font-weight: 900;
    padding: 1rem 3rem;
    border-radius: 5px;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-button:hover {
    transform: scale(1.05);
    color: var(--background-color);
    box-shadow: 0 0 20px var(--accent-color);
}


/* --- News Section --- */
.content-section {
    padding: 4rem 0;
    background-color: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(5px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-item {
    background-color: var(--surface-color);
    border: 1px solid var(--surface-color-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.news-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-item h3 {
    padding: 1rem 1rem 0.5rem 1rem;
    margin: 0;
}

.news-item p {
    padding: 0 1rem;
    color: var(--text-muted-color);
}

.news-date {
    display: block;
    padding: 1rem;
    text-align: right;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted-color);
}


/* --- Footer --- */
footer {
    background-color: var(--surface-color);
    padding: 3rem 0 1rem 0;
    border-top: 2px solid var(--accent-color);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul a {
    color: var(--text-muted-color);
}

.social-links-footer a {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted-color);
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--surface-color-light);
    padding-top: 1rem;
    color: var(--text-muted-color);
    font-size: 0.9rem;
}


/* Generic Page Styles */
.page-header {
    background: linear-gradient(rgba(17, 17, 17, 0.8), rgba(17, 17, 17, 0.95));
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
}

.page-content {
    padding: 4rem 0;
    background-color: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(5px);
    line-height: 1.8;
}

.page-content .container {
    max-width: 800px;
}


/* --- Form Styles (Login/Register) --- */
.form-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.form-container h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--surface-color-light);
    border-radius: 4px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
    box-sizing: border-box; /* Include padding in width */
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(157, 78, 221, 0.3);
}

.form-container button[type="submit"] {
    background-color: var(--accent-color);
    color: var(--background-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    margin-top: 1rem;
}

.form-container button[type="submit"]:hover {
    background-color: #7a3aab; /* Slightly darker accent */
    transform: translateY(-2px);
}

.form-container p {
    margin-top: 1.5rem;
    color: var(--text-muted-color);
}

.form-container p a {
    color: var(--accent-color);
    font-weight: 600;
}

.message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
}

.message.show {
    opacity: 1;
}

.message.success {
    background-color: #4CAF50; /* Green */
    color: white;
}

.message.error {
    background-color: #f44336; /* Red */
    color: white;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--surface-color-light);
}

.auth-tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted-color);
    cursor: pointer;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.auth-tab-btn:hover {
    color: var(--text-color);
}

.auth-tab-btn.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* Form Sections */
.form-section {
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-section.active {
    display: block; /* Show when active */
    opacity: 1;
}

.form-section.hidden {
    display: none;
}

/* Adjust h2 spacing within form-section */
.form-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}
