* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
	overflow-x: hidden;
	width: 100%;
}

body {
	background-image: url('/img/tlo_bg.jpg'); 
	background-size: cover;
	background-position: center top;
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-color: #000;
	color: #fff;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	position: relative;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.8) 100%);
	z-index: -1;
	pointer-events: none;
}


/* HEADER I NAWIGACJA GŁÓWNA */
header {
	width: 100%;
	background: rgba(0, 0, 0, 0.45);
	padding: 13px 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.rs-menu {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}
.rs-menu a, .dropdown-btn {
	text-decoration: none;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	padding: 12px 22px;
	border-radius: 10px;
	transition: all 0.3s ease;
	text-transform: capitalize;
	letter-spacing: 0.5px;
	cursor: pointer;
	border: none;
	background: transparent;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.rs-menu a:hover, .dropdown:hover .dropdown-btn {
	background-color: rgba(255, 255, 255, 0.15);
	color: #b1b1b1;
	transform: translateY(-2px);
}
.dropdown {
	position: relative;
	display: inline-block;
}
.nav-item-dropdown::after {
	content: '';
	width: 5px;
	height: 5px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg);
	margin-left: 10px;
	margin-bottom: 3px;
	opacity: 0.8;
	transition: transform 0.3s ease;
}
.dropdown:hover .nav-item-dropdown::after {
	transform: rotate(-135deg);
	margin-bottom: -2px;
}
.dropdown-content {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	background-color: rgba(0, 0, 0, 0.45);
	min-width: 220px;
	border-radius: 12px;
	padding: 10px 0;
	margin-top: 12px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
	z-index: 1001;
	backdrop-filter: blur(15px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.dropdown-content::before {
	content: "";
	position: absolute;
	top: -20px; 
	left: 0;
	width: 100%;
	height: 25px;
	background: transparent;
}
.dropdown:hover .dropdown-content {
	display: block;
	animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}
.dropdown-content a {
	color: #fff;
	padding: 12px 20px;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	font-size: 14px;
	transition: 0.2s;
}
.dropdown-content a:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: #fdb913;
	transform: translateY(-2px);
}


/* TREŚĆ GŁÓWNA */
main {
	flex: 1;
	width: 100%;
	max-width: 1200px;
	margin: 200px auto;
	padding: 0 20px;
	position: relative;
	z-index: 1;
}
.description {
	background: rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
	color: white;
	padding: 50px;
	border-radius: 19px;
	border: 1px solid rgb(163 163 163 / 10%);
	box-shadow: 0 5px 55px rgb(126 126 126 / 100%);
}
.description h1 {
	font-size: 30px;
	margin-bottom: 20px;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-align: center;
	text-shadow: 0 0 10px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 0, 0, 0.5);
}	


/* STATUS ONLINE */
.status-container {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #ffffff;
}
.dot {
	position: relative;
	width: 8px;
	height: 8px;
	background: #22c55e;
	border-radius: 50%;
	box-shadow: 0 0 8px #000000, 0 0 15px rgba(34, 197, 94, 0.4);
}
.dot::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #22c55e;
	border-radius: 50%;
	animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
	opacity: 0.7;
}
@keyframes ping {
	0% { transform: scale(1); opacity: 0.7; }
	75%, 100% { transform: scale(3); opacity: 0; }
}


/* Styl galerii */
.swiper {
	width: 100%;
	padding-top: 30px;
	padding-bottom: 50px;
}
.swiper-slide {
	background-position: center;
	background-size: cover;
	width: 300px;
	height: 200px;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid rgba(255,255,255,0.1);
	transition: transform 0.3s;
}
.swiper-slide:hover {
	transform: scale(1.05);
	border-color: #fdb913;
}
.swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Modal (Lightbox) - okno powiększenia */
#gallery-modal {
	display: none;
	position: fixed;
	z-index: 2000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.9);
	backdrop-filter: blur(10px);
	justify-content: center;
	align-items: center;
}
#gallery-modal img {
	max-width: 90%;
	max-height: 90%;
	border-radius: 8px;
	box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
#gallery-modal .close-modal {
	position: absolute;
	top: 30px;
	right: 40px;
	color: white;
	font-size: 40px;
	cursor: pointer;
}
.gallery-header h2 {
	text-align: center;
	margin: 0;
	font-size: 30px;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-shadow: 0 0 10px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 0, 0, 0.5);
}
.gallery-header h2, 
.gallery-header .status-container {
	flex: none; 
	width: auto;
}
.gallery-header .status-container {
	display: flex;
	justify-content: center;
	gap: 10px;
}
.description .status-container {
	padding: 6px 12px;
	border-radius: 8px;
	max-width: fit-content;
	margin-left: auto;
	text-shadow: 0 0 10px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 0, 0, 0.5);
}


/* STOPKA - GŁÓWNY KONTENER */
footer {
	background: rgba(0, 0, 0, 0.45);
	padding: 25px 20px;
	margin-top: auto;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-content {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

/* LEWA STRONA - COPYRIGHT */
.footer-center {
	flex: 1;
	text-align: left;
	color: #888;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.5px;
}
.footer-center a { 
	color: #1f74bf; 
	text-decoration: none; 
}
		
/* PRAWA STRONA - LINKI */
.social-links {
	flex: 1;
	display: flex;
	gap: 20px;
	justify-content: flex-end;
	align-items: center;
}

.social-links a {
	color: rgba(255, 255, 255, 0.5);
	transition: all 0.3s ease;
	display: flex;
	text-decoration: none;
}
.social-links a:hover {
	color: #ffffff;
	transform: translateY(-2px);
}



/* GŁÓWNY KONTENER */
.ban-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 40px 0;
}

.ban-container {
    width: 90%;
    max-width: 1100px;
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    color: #efefef;
    /* Dodajemy kolorowe obramowanie kontenera */
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7), inset 0 0 20px rgba(255,153,0,0.05);
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* TABELA */
table {
    width: 100%;
    border-collapse: separate; /* Zmieniamy na separate, aby border-radius działał */
    border-spacing: 0;
    margin: 20px 0;
    border: 1px solid #444; /* Linia wokół całej tabeli */
    border-radius: 8px;
    overflow: hidden; /* Zaokrągla rogi tabeli */
}

/* NAGŁÓWKI */
th {
    background-color: #222;
    color: #ff9900;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #333; /* Główna linia pod nagłówkiem */
    border-right: 1px solid #333;    /* Pionowe linie */
}

th:last-child {
    border-right: none;
}

/* KOMÓRKI */
td {
    padding: 14px;
    /* Wyraźne linie oddzielające wiersze i kolumny */
    border-bottom: 1px solid #333;
    border-right: 1px solid #333;
    text-align: center;
    font-size: 14px;
    transition: 0.2s;
}

td:last-child {
    border-right: none;
}

/* WIERSZE */
tr:nth-child(even) {
    background-color: #1f1f1f;
}

tr:last-child td {
    border-bottom: none;
}

/* EFEKT PO NAJECHANIU */
tr:hover td {
    background-color: #2a2a2a;
    color: #fff;
    
}

/* STYL DLA DATY W NAWIASIE (Tabulator/Odstęp) */
.date-info {
    display: inline-block;
    color: #777;
    font-size: 11px;
    font-style: italic;
}
.server-info {
	text-align: center;
	color: #aaa;
	font-size: 0.9em;
	line-height: 1.6;
	padding-top: 20px;
}

.server-info a {
    color: #ff4f4f;
}


/* RESPONSYWNOŚĆ - TELEFON */
@media (max-width: 1024px) {
	body {
		/* Wyłączenie efektu fixed dla lepszej wydajności na urządzeniach dotykowych */
		background-attachment: scroll !important;
	}

	/* Reguły dla tabletów i telefonów (poniżej 768px) */
	@media (max-width: 768px) {
		.gallery-header, 
		.footer-content {
			flex-direction: column;
			gap: 15px;
		}

		.footer-center, 
		.social-links {
			flex: none;
			width: 100%;
			justify-content: center;
			text-align: center;
		}

		/* Reguły tylko dla małych telefonów (poniżej 600px) */
		@media (max-width: 600px) {
			.gallery-header .status-container { 
				order: 1; /* Status (50 online) wyżej */
				margin: 0 auto; 
			}
			.gallery-header h2 { 
				order: 2; /* Tytuł niżej */
			}

			/* Reguły dla bardzo wąskich ekranów (poniżej 480px) */
			@media (max-width: 480px) {
				.rs-menu { 
					gap: 2px; 
				}
				.rs-menu a, 
				.dropdown-btn { 
					padding: 8px 10px; 
					font-size: 13px; 
				}
				.dropdown-content { 
					right: auto; 
					left: 0; 
				}
			}
		}
	}
}