/* =========================================
   PAGRINDINIAI NUSTATYMAI
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body, html {
    height: 100%;
    background-color: #0d0d0d;
    color: #ffffff;
    overflow-x: hidden;
}

/* Foninis efektas (tamsiai raudonas apšvietimas centre) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(139, 0, 0, 0.35) 0%, #0d0d0d 80%);
    z-index: 1;
}

/* =========================================
   NAVIGACIJOS JUOSTA (TOP BAR)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(220, 20, 60, 0.3);
    z-index: 10;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span {
    color: #ff3333;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: #cccccc;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff3333;
}

/* Akcentuotas "Prisijungti" mygtukas navigacijoje */
.nav-links .join-nav {
    background: #d32f2f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-links .join-nav:hover {
    background: #f44336;
    color: #fff;
}

/* =========================================
   ŽAIDĖJŲ STATUSO INDIKATORIUS
   ========================================= */
.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(20, 20, 20, 0.6);
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.online {
    background-color: #4caf50;
    box-shadow: 0 0 10px #4caf50;
    animation: pulse-green 2s infinite;
}

.status-dot.offline {
    background-color: #f44336;
    box-shadow: 0 0 10px #f44336;
}

.status-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mirksėjimo efektas online indikatoriui */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* =========================================
   PAGRINDINIAI KONTEINERIAI IR TEKSTAI
   ========================================= */
.container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 100px 20px 40px 20px;
}

.rules-container {
    align-items: flex-start;
    padding-top: 140px; /* Daugiau vietos po topbaru taisyklių puslapyje */
}

.content {
    max-width: 800px;
    width: 100%;
}

.title {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
}

.title span {
    color: #ff3333;
}

.subtitle {
    font-size: 1.2rem;
    color: #bbbbbb;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* =========================================
   MYGTUKAI
   ========================================= */
.main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, #d32f2f 0%, #8b0000 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 45px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(183, 28, 28, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.main-btn:hover {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(244, 67, 54, 0.6);
}

.discord-icon {
    width: 25px;
    height: 25px;
    fill: #ffffff;
}

/* =========================================
   TAISYKLIŲ SEKCIJA
   ========================================= */
.rules-box {
    background: rgba(20, 20, 20, 0.8);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(220, 20, 60, 0.3);
    text-align: left;
    backdrop-filter: blur(5px);
}

.rules-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rule-item {
    background: rgba(30, 30, 30, 0.9);
    padding: 15px 20px;
    border-left: 4px solid #d32f2f;
    border-radius: 4px;
    font-size: 1.1rem;
    color: #eaeaea;
    line-height: 1.5;
}

/* =========================================
   ADMIN PANELĖ IR FORMOS
   ========================================= */
.form-box {
    background: rgba(20, 20, 20, 0.9);
    padding: 50px;
    border-radius: 10px;
    border: 1px solid rgba(220, 20, 60, 0.3);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form textarea {
    width: 100%;
    padding: 15px;
    background: #111;
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

.admin-form input[type="text"]:focus,
.admin-form input[type="password"]:focus,
.admin-form textarea:focus {
    border-color: #d32f2f;
}

.admin-form textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 250px;
}

/* Maintenance "Switch" (Checkbox) */
.maintenance-toggle {
    background: rgba(211, 47, 47, 0.1);
    padding: 20px;
    border-left: 4px solid #d32f2f;
    border-radius: 5px;
    margin-bottom: 20px;
}

.maintenance-toggle label {
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.maintenance-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #d32f2f;
    cursor: pointer;
}

/* =========================================
   RESPONSIVE DIZAINAS (MOBILIESIEMS)
   ========================================= */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
        position: relative; /* Atšaukiame fixed mobiliuosiuose */
    }
    
    .server-status {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .nav-links {
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .container {
        padding-top: 40px; 
    }
    
    .rules-container {
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .main-btn {
        font-size: 1.1rem;
        padding: 15px 30px;
    }
    
    .rules-box {
        padding: 20px;
    }
    
    .form-box {
        padding: 30px;
    }
}