/* === RESET I PODSTAWA === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #000;
    color: #ddd;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* === NAGŁÓWEK I NAWIGACJA === */
.top-fixed-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.server-list-bar {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    background: #0a0a0a;
    border-bottom: 2px solid #f39c12;
    overflow-x: auto;
    scrollbar-width: none; /* Ukrycie scrollbara dla Firefox */
}
.server-list-bar::-webkit-scrollbar { display: none; } /* Ukrycie scrollbara dla Chrome/Safari */

header {
    background: linear-gradient(#1a1a1a, #0f0f0f);
    border-bottom: 1px solid #333;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 48px;
    width: auto;
    display: block;
    transition: transform 0.3s;
}
.logo img:hover { transform: scale(1.05); }

nav { 
    background: #111; 
    border-top: 1px solid #222; 
    border-bottom: 1px solid #222; 
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-inner a {
    color: #f39c12;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.2s;
}
.nav-inner a:hover { color: #fff; text-shadow: 0 0 8px #f39c12; }

.section-title { 
    font-size: 24px; 
    color: #f39c12; 
    margin: 25px 0 15px; 
    font-weight: bold; 
    text-transform: uppercase;
    border-left: 4px solid #f39c12;
    padding-left: 15px;
}

/* === SERWERY W PASKU === */
.server-tile { 
    background: #161616; 
    border: 1px solid #333; 
    padding: 10px 15px; 
    border-radius: 8px; 
    min-width: 200px; 
    flex-shrink: 0;
    transition: border-color 0.3s;
}
.server-tile:hover { border-color: #f39c12; }
.tile-name { color: #f39c12; font-weight: bold; font-size: 12px; margin-bottom: 4px; }
.tile-line { font-size: 10px; color: #888; display: flex; justify-content: space-between; }
.tile-line b { color: #fff; }

/* === SYSTEM NEWSÓW === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #161616;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}
.news-card:hover { 
    transform: translateY(-5px); 
    border-color: #f39c12; 
}

.news-card img {
    height: 190px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid #222;
}

.news-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.news-title {
    font-weight: bold;
    color: #f39c12;
    font-size: 18px;
    margin-bottom: 12px;
    height: 50px;
    overflow: hidden;
}

.news-text {
    flex-grow: 1;
    font-size: 14px;
    color: #bbb;
    word-break: break-word;
    margin-bottom: 15px;
}

.news-footer-meta {
    margin-top: auto;
    padding-top: 15px;
    font-size: 11px;
    color: #555;
    text-align: right;
    border-top: 1px solid #222;
    font-style: italic;
}

/* === PRZYCISKI === */
.news-btn {
    display: block;
    padding: 12px;
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: #000;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 15px;
    transition: 0.3s;
    border: none;
    text-transform: uppercase;
    font-size: 12px;
}
.news-btn:hover { 
    filter: brightness(1.1); 
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4); 
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 1100px) { 
    .news-grid { grid-template-columns: repeat(2, 1fr); } 
}

@media (max-width: 768px) {
    .nav-inner { gap: 15px; }
    .header-inner { flex-direction: column; gap: 15px; text-align: center; }
}

@media (max-width: 650px) { 
    .news-grid { grid-template-columns: 1fr; } 
    .section-title { font-size: 20px; }
}
