/* Servers Page Styles */

/* Servers Hero */
.servers-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    text-align: center;
}

.servers-hero h1 {
    color: white;
    margin-bottom: 20px;
}

.servers-hero p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
}

.server-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    min-width: 150px;
}

.stat-card h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

/* Server Controls */
.server-controls {
    padding: 30px 0;
    background-color: var(--light-color);
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-options {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-options select {
    padding: 10px 15px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    background-color: white;
    font-size: 0.9rem;
    min-width: 150px;
}

/* Servers List */
.servers-list {
    padding: 60px 0;
}

.servers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-btn {
    padding: 8px 15px;
    border: 2px solid var(--gray-light);
    background: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.sort-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sort-btn:hover:not(.active) {
    border-color: var(--primary-color);
}

.servers-table-container {
    overflow-x: auto;
    margin-bottom: 40px;
}

.servers-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.servers-table th {
    background-color: var(--dark-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.servers-table td {
    padding: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.servers-table tr:hover {
    background-color: var(--gray-light);
}

.server-load {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.load.low {
    background-color: #10b98120;
    color: var(--success-color);
}

.load.medium {
    background-color: #f59e0b20;
    color: var(--warning-color);
}

.load.high {
    background-color: #ef444420;
    color: var(--danger-color);
}

.btn-connect {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Popular Servers */
.popular-servers {
    margin-top: 60px;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.popular-server-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.popular-server-card:hover {
    transform: translateY(-5px);
}

.server-flag {
    font-size: 2rem;
    color: var(--primary-color);
}

.server-info {
    flex: 1;
}

.server-info h4 {
    margin-bottom: 5px;
}

.server-info p {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.server-stats {
    display: flex;
    gap: 15px;
}

.server-stats span {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* Special Servers */
.special-servers {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.special-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.special-card:hover {
    transform: translateY(-10px);
}

.special-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: white;
}

.streaming .special-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.gaming .special-icon {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.torrenting .special-icon {
    background: linear-gradient(135deg, #ffd93d, #ff9a3c);
}

.double .special-icon {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.special-card h3 {
    margin-bottom: 15px;
}

.special-card ul {
    list-style: none;
    margin: 20px 0;
}

.special-card li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.special-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
}

/* Server Map */
.server-map-section {
    padding: 80px 0;
}

.world-map {
    position: relative;
    background: url('https://images.unsplash.com/photo-1528164344705-47542687000d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    border-radius: 15px;
    overflow: hidden;
    height: 500px;
    margin-top: 40px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.server-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.server-dot:hover {
    transform: scale(1.5);
    background-color: var(--secondary-color);
}

.dot-tooltip {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    font-size: 0.8rem;
    white-space: nowrap;
    display: none;
}

.server-dot:hover .dot-tooltip {
    display: block;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.high {
    background-color: #ef4444;
}

.dot.medium {
    background-color: #f59e0b;
}

.dot.low {
    background-color: #10b981;
}

/* Responsive */
@media (max-width: 768px) {
    .server-stats {
        gap: 20px;
    }
    
    .stat-card {
        min-width: 120px;
        padding: 15px;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .search-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .servers-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .world-map {
        height: 300px;
    }
    
    .map-legend {
        flex-direction: column;
        gap: 10px;
    }
}