:root {
    --bg-color: #dfdfdf;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --white: #ffffff;
    --accent-green: #90cd8a; /* Like the button in the mockup */
    --accent-green-hover: #7bba75;
    --sidebar-bg: #9ca3af;
    --border-color: #6b7280;
    --border-dashed: #6b7280;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.page-container {
    max-width: 900px;
    margin: 40px auto;
    background-color: transparent;
}

/* Header */
.header {
    margin-bottom: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 3.5rem;
    font-weight: 500;
    color: #2c3e50;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-left: 5px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.2s, transform 0.2s;
}

.nav-link.active, .nav-link:hover {
    color: #3b82f6;
    transform: translateY(-2px);
}

.nav-link.active::after {
    width: 100%;
}

/* Auth Section */
.auth-section {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.btn-discord {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #5865F2;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.95rem;
}

.btn-discord:hover {
    background-color: #4752C4;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 12px 4px 4px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.logout-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Main Content */
.main-content {
    background: transparent;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--border-color);
    border-bottom: none;
    display: flex;
    align-items: center;
    padding: 40px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
}

.hero-text {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 500px;
}

.hero-text h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero-text p {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    border: 2px solid var(--border-color);
    background-color: var(--white);
    min-height: 500px;
}

/* Feed Section (Left) */
.feed-section {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feed-card {
    border: 2px dashed var(--border-dashed);
    padding: 20px 20px 20px 30px;
    position: relative;
    min-height: 120px;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.feed-card:hover {
    background-color: #f0fdf4;
    border-color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.date-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--white);
    border: 2px solid var(--border-color);
    padding: 4px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.feed-content h3 {
    margin-top: 10px;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feed-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Sidebar (Right) */
.sidebar {
    background-color: var(--sidebar-bg);
    border-left: 2px solid var(--border-color);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.play-button {
    background-color: var(--accent-green);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 1.05rem;
    font-weight: 500;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 40px;
}

.play-button:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.play-button:active {
    transform: translateY(0);
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-box {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    min-width: 65px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.stat-label {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        border-left: none;
        border-top: 2px solid var(--border-color);
    }
    .page-container {
        margin: 0;
    }
    .nav {
        flex-wrap: wrap;
    }
}

/* Discord Rules Page */
.discord-rules-container {
    background-color: transparent;
    margin-bottom: 40px;
}

.rules-title {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.rule-item {
    background-color: #fafafa;
    border: 2px dashed var(--border-dashed);
    padding: 25px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.rule-item:hover {
    background-color: #f0fdf4;
    border-color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.rule-item strong {
    color: var(--text-primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.rule-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* About Page */
.about-container {
    background-color: transparent;
    margin-bottom: 40px;
}

.about-title {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.about-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.about-section {
    background-color: #fafafa;
    border: 2px dashed var(--border-dashed);
    border-radius: 0;
    padding: 25px;
    transition: all 0.3s ease;
}

.about-section:hover {
    background-color: #f0fdf4;
    border-color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.about-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.about-section h3 .material-symbols-outlined {
    color: #3b82f6;
}

.custom-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-list li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.5;
}

.custom-list li::before {
    content: "➢";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

.highlight {
    color: var(--accent-green);
    font-weight: 600;
}

.badge.warning {
    background-color: #fef08a;
    color: #854d0e;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    margin-left: 5px;
    display: inline-block;
}

.social-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.social-link:hover {
    text-decoration: underline;
}

.accent-link {
    color: #8b5cf6;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

.accent-link:hover {
    text-decoration: underline;
}

.beta-warning {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    background-color: #fef2f2;
    border-left: 6px solid #ef4444;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.2);
    z-index: 1000;
    animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.beta-title {
    color: #b91c1c;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.beta-subtitle {
    color: #dc2626;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.warning-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.warning-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.icon-warning {
    color: #ef4444;
    font-size: 1.2rem;
}

/* Players Page */
.players-container {
    background-color: #fafafa;
    border: 2px dashed var(--border-dashed);
    padding: 30px;
    border-radius: 0;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.player-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 20px 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.player-head {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    image-rendering: pixelated;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.player-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    word-break: break-all;
}

.status-message {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.status-message .material-symbols-outlined {
    font-size: 48px;
    margin-bottom: 15px;
}

.status-message.error {
    color: #ef4444;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 2s linear infinite;
    display: inline-block;
}

.warning-item p {
    color: #7f1d1d;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Page */
.faq-container {
    background-color: transparent;
    margin-bottom: 40px;
}

.faq-title {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #fafafa;
    border: 2px dashed var(--border-dashed);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background-color: #f0fdf4;
    border-color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.faq-item summary {
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background-color: #f1f5f9;
}

.faq-item summary::after {
    content: "expand_more";
    font-family: 'Material Symbols Outlined';
    font-size: 1.5rem;
    color: #3b82f6;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 20px 20px 20px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    border-top: 1px solid transparent;
}

.faq-item[open] p {
    border-top-color: #e2e8f0;
    padding-top: 20px;
}

.close-warning:hover { color: var(--text) !important; transform: scale(1.1); transition: 0.2s; }

.server-rules { background-color: var(--surface); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.rules-subtitle { color: var(--accent); margin-top: 2rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.rules-text { margin-bottom: 1rem; line-height: 1.6; }
.rules-list { margin-left: 1.5rem; margin-bottom: 1rem; list-style-type: disc; }
.rules-list li { margin-bottom: 0.5rem; }
.rules-note { color: var(--text-muted); font-size: 0.9em; }
