/* ========================================
   SERVER CARDS STYLES - CS2/CSGO GAMING THEME
   Used in: User Profile, My Servers, My Favorites, Search Results
   ======================================== */

/* Main Server Card Container */
.server-card {
    background: linear-gradient(135deg, #161c2e 0%, #0a0e1a 100%);
    border: 2px solid rgba(255, 107, 26, 0.2);
    border-radius: 0;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(
        0 10px, 10px 0,
        calc(100% - 10px) 0, 100% 10px,
        100% 100%, 0 100%
    );
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(255, 107, 26, 0.05);
}

.server-card::before {
    content: 'CS2';
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ff6b1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2rem;
    opacity: 0.1;
    letter-spacing: 1px;
    z-index: 0;
}

.server-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b1a, transparent);
    /* animation: scan 4s linear infinite; - Disabled for performance */
}

/* Disabled for performance
@keyframes scan {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(100px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
} */

.server-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 107, 26, 0.3), inset 0 0 30px rgba(255, 107, 26, 0.1);
    border-color: #ff6b1a;
}

.server-card:hover::before {
    opacity: 0.2;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% { text-shadow: 2px 2px 0 #ff4655, -2px -2px 0 #0e7fff; }
    25% { text-shadow: -2px 2px 0 #ff4655, 2px -2px 0 #0e7fff; }
    50% { text-shadow: 2px -2px 0 #ff4655, -2px 2px 0 #0e7fff; }
    75% { text-shadow: -2px -2px 0 #ff4655, 2px 2px 0 #0e7fff; }
}

/* Online/Offline Badge - CS2 Style */
.server-card .status-badge {
    position: absolute;
    top: 15px;
    right: 50px;
    padding: 8px 15px;
    border-radius: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    z-index: 10;
}

.server-card .status-badge.online {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6e 100%);
    color: #000;
    border: 2px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    animation: neonPulse 2s infinite;
}

.server-card .status-badge.offline {
    background: linear-gradient(135deg, #ff4655 0%, #cc1122 100%);
    color: #fff;
    border: 2px solid #ff4655;
    box-shadow: 0 0 20px rgba(255, 70, 85, 0.3);
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.8), 0 0 40px rgba(0, 255, 136, 0.4);
    }
}

/* Server Title - Normal Style */
.server-card h5 {
    color: #fff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    margin-bottom: 10px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 5;
}

.server-card h5 a {
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.server-card h5 a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b1a, #ffd700);
    transition: width 0.3s;
}

.server-card h5 a:hover {
    color: #ff6b1a;
    text-shadow: 0 0 10px rgba(255, 107, 26, 0.5);
}

.server-card h5 a:hover::after {
    width: 100%;
}

/* Server Info */
.server-card .server-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.server-card .info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 14px;
}

.server-card .info-item i {
    color: #667eea;
    width: 16px;
    text-align: center;
}

/* Game Type Badge */
.server-card .game-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    color: #667eea;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.server-card .game-badge img {
    width: 16px;
    height: 16px;
}

/* Players Bar */
.server-card .players-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.server-card .players-count {
    font-size: 14px;
    color: #94a3b8;
}

.server-card .players-count strong {
    color: white;
}

.server-card .progress {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.server-card .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Action Buttons */
.server-card .actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.server-card .btn-action {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.server-card .btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.server-card .btn-action.secondary {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.server-card .btn-action.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Grid Layout for Server Cards */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .servers-grid {
        grid-template-columns: 1fr;
    }
}

/* Favorite Heart Icon */
.server-card .favorite-icon {
    position: absolute;
    top: 15px;
    right: 60px;
    color: #ef4444;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.server-card .favorite-icon:hover {
    transform: scale(1.2);
}

.server-card .favorite-icon.active {
    animation: heartbeat 1s ease-in-out;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Map Display in Card */
.server-card .map-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    color: #94a3b8;
    font-size: 13px;
}

.server-card .map-info i {
    color: #10b981;
}

/* Special Badges (VIP, BOOST, etc) */
.server-card .special-badges {
    display: flex;
    gap: 8px;
    position: absolute;
    top: 50px;
    right: 15px;
}

.server-card .special-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-card .special-badge.vip {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a2e;
}

.server-card .special-badge.boost {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.server-card .special-badge.gold {
    background: linear-gradient(135deg, #fde047, #facc15);
    color: #1a1a2e;
}

/* Server IP Copy Button */
.server-card .copy-ip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 6px;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.server-card .copy-ip:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
    color: #667eea;
}

.server-card .copy-ip.copied {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

/* Empty State for No Servers */
.no-servers {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(145deg, #1a1f3a, #2a2f4a);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
}

.no-servers i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.no-servers h3 {
    color: white;
    margin-bottom: 10px;
}

.no-servers p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.no-servers .btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.no-servers .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
