/* Main Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85), rgba(22, 33, 62, 0.9)), url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: #fff;
}

.top-nav {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    text-decoration: none;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.nav-logo:hover {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-btn-wiki {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.nav-btn-wiki:hover {
    background: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.nav-btn-forum {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.nav-btn-forum:hover {
    background: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.nav-btn-discord {
    background: rgba(88, 101, 242, 0.2);
    color: #818cf8;
}

.nav-btn-discord:hover {
    background: rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.hero-logo {
    font-size: 2rem;
    color: #ffd700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    margin-bottom: 0.25rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto;
    color: #888;
    line-height: 1.6;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-color: #ffd700;
    color: #000;
    font-weight: bold;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.server-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.server-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.server-logo {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    overflow: hidden;
}

.server-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.server-title {
    flex: 1;
}

.server-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.status-checking {
    color: #888;
}

.status-online {
    color: #4ade80;
}

.status-offline {
    color: #f87171;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.server-body {
    padding: 1.5rem;
}

.server-description {
    color: #a0a0a0;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.server-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    text-align: center;
}

.info-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: bold;
    color: #fff;
}

.type-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
}

.type-easy {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.type-medium {
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
}

.type-hard {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.reset-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
}

.reset-unlimited {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.reset-none {
    background: rgba(34, 211, 238, 0.2);
    color: #22d3ee;
}

.reset-limited {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
}

.server-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
}

.server-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-discord {
    background: rgba(88, 101, 242, 0.3);
    color: #818cf8;
}

.btn-discord:hover {
    background: rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.4);
}

.footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #ffd700;
}

.footer-copyright {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive View Toggles */
.view-mobile {
    display: none;
}

@media (max-width: 768px) {
    .view-desktop {
        display: none;
    }

    .view-mobile {
        display: block;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .hero-logo {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .servers-grid {
        grid-template-columns: 1fr;
    }

    .server-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .server-links {
        flex-direction: column;
    }

    .stats-bar {
        gap: 1.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

/* Alerty */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.alert-error {
    background: rgba(248, 113, 113, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.alert-warning {
    background: rgba(250, 204, 21, 0.2);
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: #facc15;
}

.alert-info {
    background: rgba(96, 165, 250, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
}

/* Error page */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-size: 3rem;
    color: #f87171;
    margin-bottom: 1rem;
}

.error-page p {
    color: #a0a0a0;
    margin-bottom: 2rem;
}

/* Additional Styles from Server List */
.info-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.info-box-icon {
    font-size: 1.5rem;
}

.info-box-content {
    color: #a0a0a0;
    line-height: 1.5;
}

.info-box-content a {
    color: #60a5fa;
    text-decoration: none;
}

.info-box-content a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.info-box-content strong {
    color: #fff;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #a0a0a0;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Comparison mode - przyszła funkcja */
.compare-mode .server-card {
    cursor: pointer;
}

.compare-mode .server-card.selected {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.compare-mode .server-card.selected::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: #ffd700;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

@media (max-width: 768px) {
    .info-box {
        flex-direction: column;
        text-align: center;
    }
}

/* Server Table View */
.table-responsive {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.server-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    /* Force scroll on small screens */
}

.server-table th {
    text-align: left;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.server-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

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

.server-table tr {
    transition: background 0.3s;
}

.server-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Specific Columns */
.col-logo {
    width: 80px;
    text-align: center;
}

.col-name {
    width: 25%;
}

.col-season {
    width: 10%;
}

.col-rates {
    width: 15%;
}

.col-type {
    width: 10%;
}

.col-status {
    width: 15%;
}

.col-actions {
    width: 25%;
    text-align: right;
}


.table-logo {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    display: block;
}

.table-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    display: block;
}

.table-desc-short {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 200px;
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.table-actions .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}