/* Server List Styles */
.page-header {
    text-align: center;
    margin: 4rem 0;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 400;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.server-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.server-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(10, 132, 255, 0.2), 0 0 0 1px rgba(10, 132, 255, 0.1);
    background: var(--card-hover-bg);
}

.server-card:nth-child(1) { animation-delay: 0.1s; }
.server-card:nth-child(2) { animation-delay: 0.2s; }
.server-card:nth-child(3) { animation-delay: 0.3s; }
.server-card:nth-child(4) { animation-delay: 0.4s; }
.server-card:nth-child(5) { animation-delay: 0.5s; }
.server-card:nth-child(6) { animation-delay: 0.6s; }

.server-banner {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 aspect ratio for 500x500 */
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--card-bg);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-card:hover .server-banner {
    transform: scale(1.05);
}

.server-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-status.online {
    background: rgba(48, 209, 88, 0.15);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    box-shadow: 0 8px 16px rgba(48, 209, 88, 0.2);
}

.server-status.offline {
    background: rgba(255, 69, 58, 0.15);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    box-shadow: 0 8px 16px rgba(255, 69, 58, 0.2);
}

.server-status i {
    font-size: 0.6rem;
}

.server-info {
    padding: 2rem;
}

.server-info h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-card:hover .server-info h2 {
    color: var(--primary-color);
}

.server-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    min-height: 60px;
}

.server-stats {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat i {
    color: var(--primary-color);
}

.server-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    background: rgba(10, 132, 255, 0.1);
    border: 1px solid rgba(10, 132, 255, 0.3);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag:hover {
    background: rgba(10, 132, 255, 0.2);
    transform: translateY(-2px);
}

.server-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.server-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.server-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-top: 2rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .page-header {
        margin: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .servers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .server-card {
        border-radius: 16px;
    }
    
    .server-banner {
        padding-bottom: 75%; /* Adjust ratio for mobile */
    }
    
    .server-info {
        padding: 1.5rem;
    }
    
    .server-info h2 {
        font-size: 1.5rem;
    }
    
    .server-status {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .server-stats {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .server-tags {
        gap: 0.375rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .server-links {
        flex-direction: column;
    }
    
    .server-links a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .servers-grid {
        gap: 1rem;
    }
    
    .server-info {
        padding: 1.25rem;
    }
}
