:root {
    --bg-color: #0f0b09; 
    --primary: rgb(200, 120, 66); 
    --secondary: #e6955c; 
    --accent: #ffae63;
    
    --glass: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text: #ffffff;
    --text-dim: #b2bec3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 35px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    z-index: -2;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background: rgba(15, 11, 9, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}


.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    position: relative;
    top: 2px;
    animation: pulse-logo 2s infinite;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

@keyframes pulse-logo {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.highlight {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.nav-links li {
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
    opacity: 0.7;
}

.nav-links li:hover, .nav-links li.active {
    opacity: 1;
    color: var(--primary);
}

.nav-links .underline {
    position: absolute;
    bottom: -5px;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease-in-out;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content {
    display: none;
    width: 100%;
    animation: tabSwitch 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

@keyframes tabSwitch {
    0% { opacity: 0; transform: translateY(15px) scale(0.98); filter: blur(5px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.hero {
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #d35400);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: scale(0.95);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.stat-card {
    background: rgba(200, 120, 66, 0.06);
    border: 1px solid rgba(200, 120, 66, 0.2);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(200, 120, 66, 0.08);
}

.icon-box {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.status-online {
    color: #ff2c2c; 
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glass-panel {
    background: rgba(200, 120, 66, 0.06);
    border: 1px solid rgba(200, 120, 66, 0.2);
    padding: 1.5rem;
    border-radius: 24px;
    width: 100%;
    backdrop-filter: blur(5px);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.news-card {
    background: rgba(200, 120, 66, 0.06);
    border: 1px solid rgba(200, 120, 66, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--primary);
}

.news-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.news-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.news-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.news-excerpt {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more-btn {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
}

.read-more-btn:hover {
    background: var(--primary);
    color: white;
}

.rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
}

.rule-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: rgba(200, 120, 66, 0.06);
    border: 1px solid rgba(200, 120, 66, 0.2);
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rule-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(200, 120, 66, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.rule-item::before {
    display: none;
}

.rule-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 0;
    margin-bottom: 1rem;
    background: rgba(200, 120, 66, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.rule-item:hover .rule-icon {
    background: var(--primary);
    color: white;
    transform: rotate(10deg);
}

.rule-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 700;
}

.rule-content p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}

.admin-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.admin-card {
    background: rgba(200, 120, 66, 0.06);
    border: 1px solid rgba(200, 120, 66, 0.2);
    border-radius: 24px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1 1 200px;
    max-width: 260px;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
    background: rgba(200, 120, 66, 0.12);
}

.admin-card::before {
    display: none;
}

.admin-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    object-fit: cover;
}

.admin-card:hover .admin-avatar {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: none;
}

.admin-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text);
}

.admin-roles-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
}

.admin-role {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255,255,255,0.05);
    color: var(--text-dim);
    border: 1px solid transparent;
    transition: 0.3s;
}

.admin-role.owner { background: rgba(231, 76, 60, 0.2); color: #e74c3c; border-color: rgba(231, 76, 60, 0.3); }
.admin-role.admin { background: rgba(230, 126, 34, 0.2); color: #e67e22; border-color: rgba(230, 126, 34, 0.3); }
.admin-role.mod { background: rgba(46, 204, 113, 0.2); color: #2ecc71; border-color: rgba(46, 204, 113, 0.3); }
.admin-role.support { background: rgba(52, 152, 219, 0.2); color: #3498db; border-color: rgba(52, 152, 219, 0.3); }
.admin-role.developer { background: rgba(155, 89, 182, 0.2); color: #9b59b6; border-color: rgba(155, 89, 182, 0.3); }
.admin-role.maper { background: rgba(241, 196, 15, 0.2); color: #f1c40f; border-color: rgba(241, 196, 15, 0.3); }
.admin-role.grafik { background: rgba(52, 152, 219, 0.2); color: #3498db; border-color: rgba(52, 152, 219, 0.3); }
.admin-role.modeler { background: rgba(233, 30, 99, 0.2); color: #e91e63; border-color: rgba(233, 30, 99, 0.3); }
.admin-role.webdev { background: rgba(0, 210, 211, 0.2); color: #00d2d3; border-color: rgba(0, 210, 211, 0.3); }

.admin-discord {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .rules-container, .admin-grid {
        grid-template-columns: 1fr;
    }
}

.toast {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(100px) scale(0.9);
    background: var(--text);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .nav-links .underline {
        display: none;
    }

    .nav-links li.active {
        color: var(--primary);
        border-bottom: 2px solid var(--primary);
    }

    .hero h1 { font-size: 2.2rem; }
    .action-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    
    .stats-container, .rules-container, .admin-grid, .news-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(200, 120, 66, 0.06);
    border: 1px solid rgba(200, 120, 66, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-content.large {
    max-width: 700px;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-dim);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.news-modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.news-modal-body {
    text-align: left;
    line-height: 1.8;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 11, 9, 0.8);
    backdrop-filter: blur(10px);
    width: 100%;
    margin-top: auto;
}

.info-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: rgba(15, 11, 9, 0.95);
    border-top: 1px solid var(--glass-border);
    color: var(--text);
    overflow: hidden;
    white-space: nowrap;
    line-height: 35px;
    z-index: 999;
    font-size: 0.9rem;
}

.info-text {
    display: inline-block;
    animation: scrollLeftToRight 20s linear infinite;
}

@keyframes scrollLeftToRight {
    from { transform: translateX(-100%); }
    to { transform: translateX(100vw); }
}