/* Reset i tło */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: url('images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Pasek górny */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    padding: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.logo {
    width: 50px;
    height: 50px;
}

.logo-link, .site-name {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Pasek nawigacyjny */
.nav-bar {
    display: flex;
    justify-content: center;
    background-color: #555;
    padding: 8px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-bar a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.1rem;
    text-align: center;
}

.nav-bar a:hover {
    color: #ffcc00;
}

/* Główna zawartość - desktop */
.main-content {
    display: flex;
    justify-content: flex-start; /* lewa sekcja po lewej */
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

/* Lewa sekcja */
.left-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 auto; /* nie rozciąga się, ściśnięta do naturalnej szerokości */
}

/* Prawa sekcja */
.right-section {
    flex: 1 1 55%; /* rozciągnięta na prawie połowę ekranu */
    max-width: none;
}

/* Kafelki */
.card {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 15px;
    width: 100%; /* wypełnia swoją kolumnę */
}

/* Status serwera */
.status {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#server-icon {
    font-size: 1.5rem;
}

/* Data i czas */
.datetime-card .hour {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.datetime-card .day {
    font-size: 1rem;
    text-align: center;
}

/* Stopka */
.footer {
    text-align: center;
    background-color: #333;
    padding: 15px;
    margin-top: auto;
}

.footer p {
    margin: 5px 0;
}

.author-link {
    text-decoration: none;
    color: #fff;
}

.author-link:hover {
    color: #ffcc00;
}

ol {
    margin-left: 20px;
}

/* Przyciskowe linki */
.btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #555;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

.btn:hover {
    background-color: #ffcc00;
    color: #000;
}

/* Lista przycisków z opisem */
.button-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.button-list li {
    display: flex;
    flex-direction: column; /* przycisk + opis w kolumnie */
    margin-bottom: 15px;
}

.button-list .btn {
    width: fit-content; /* dopasowuje szerokość przycisku do tekstu */
    margin-bottom: 5px;
}

/* Opisy przycisków */
.button-list .btn-desc {
    font-size: 0.9rem;
    color: #ddd;
    margin-left: 5px;
}

/* Lista modów w prawym kafelku */
.mods-list {
    list-style: none;
    padding-left: 0;
}

.mods-list li {
    margin-bottom: 8px;
}

.mods-list li a.author-link {
    color: #fff;
    text-decoration: none;
}

.mods-list li a.author-link:hover {
    color: #ffcc00;
}

/* Sekcja screenshotów */
.screenshots {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

.screenshot-item {
    flex: 1 1 30%; /* 3 screenshoty obok siebie na komputerze */
    text-align: center;
}

.screenshot-item img {
    width: 100%;
    border-radius: 8px;
    max-height: 200px;
    object-fit: cover;
}

.screenshot-desc {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #ddd;
}

/* Responsywność – na mniejszych ekranach screenshoty układają się w kolumnę */
@media (max-width: 768px) {
    .screenshot-item {
        flex: 1 1 100%;
    }
}

/* Lista graczy w kafelkach */
.player-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.player-card {
    display: flex;
    flex: 1 1 100%; /* na komputerze trzy w rzędzie, zmienimy w media query */
    background-color: rgba(50, 50, 50, 0.8);
    border-radius: 8px;
    padding: 10px;
    align-items: center;
    gap: 10px;
}

.player-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.player-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.player-info p {
    margin: 2px 0 0 0;
    font-size: 0.85rem;
    color: #ddd;
}

/* Responsywność: 3 graczy obok siebie na komputerze, kolumna na telefonie */
@media (min-width: 769px) {
    .player-card {
        flex: 1 1 calc(33% - 10px);
    }
}

@media (max-width: 768px) {
    .player-card {
        flex: 1 1 100%;
    }
}

.post-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.post-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.post-card h3 {
    margin-bottom: 5px;
    color: #ffffff;
}

.post-card small {
    color: #aaaaaa;
    display: block;
    margin-bottom: 10px;
}

.post-card p {
    color: #dddddd;
    line-height: 1.4;
}

.input-field {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

textarea.input-field {
    resize: vertical;
}


/* Responsywność dla małych ekranów */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .left-section, .right-section {
        width: 100%;
        flex: none;
    }

    .left-section {
        flex-direction: column;
        gap: 15px;
    }

    .right-section {
        margin-left: 0;
    }

    .nav-bar a {
        font-size: 1rem;
        margin: 5px 0;
        flex: none;
    }
}
