/* MEDYAJANS SISTEM - LIVE SERVER STATUS STYLES */
/* MedyAjans Kuralları: Live Server CSS - Max 500 satır */

/* Live Server Grid */
.server-grid-live {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .server-grid-live {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Live Server Cards */
.server-card.live-card {
    background: linear-gradient(135deg, #1e1e2f 0%, #252545 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.server-card.live-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.3);
    border-color: rgba(79, 172, 254, 0.5);
}

.server-card.live-card:hover .live-badge {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Üst çizgi kaldırıldı */

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Live Badge */
.live-badge {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #0a0f0a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Card Values */
.card-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 10px 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-details {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: all 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Status Colors - Yoğunluk Sistemi */
.server-card.live-card.success::before {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
}

.server-card.live-card.warning::before {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.server-card.live-card.danger::before {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.server-card.live-card.critical::before {
    background: linear-gradient(90deg, #dc2626 0%, #991b1b 100%);
    animation: criticalBlink 1s infinite;
}

.server-card.live-card.info::before {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

@keyframes criticalBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Progress Fill Colors */
.progress-fill.success {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
}

.progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.progress-fill.danger {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.progress-fill.critical {
    background: linear-gradient(90deg, #dc2626 0%, #991b1b 100%);
    animation: criticalPulse 1.5s infinite;
}

@keyframes criticalPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Live Indicators */
.live-indicator {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-indicator.live-active {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #0a0f0a;
    animation: liveGlow 2s infinite;
}

.live-indicator.live-error {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: #fff;
    animation: errorBlink 1s infinite;
}

.live-indicator.live-stopped {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: #fff;
}

@keyframes liveGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(67, 233, 123, 0.5); }
    50% { box-shadow: 0 0 20px rgba(67, 233, 123, 0.8); }
}

@keyframes errorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Last Update */
.last-update {
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
}

/* Server Error Styles */
.server-error {
    text-align: center;
    padding: 40px 20px;
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #1e1e2f 0%, #252545 100%);
    border: 2px dashed rgba(239, 68, 68, 0.5);
    border-radius: 16px;
    color: #e2e8f0;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.error-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ef4444;
}

.error-message {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

/* Loading State */
.server-grid-live .loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: #94a3b8;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .server-card.live-card {
        padding: 15px;
        margin: 0 auto;
        width: calc(100% - 16px);
        max-width: 450px;
    }
    
    .card-value {
        font-size: 1.8rem;
    }
    
    .card-header h4 {
        font-size: 0.9rem;
    }
    
    .live-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
    
    .live-indicator {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .last-update {
        font-size: 0.7rem;
    }
}

/* Tablet and Mobile Responsive */
@media (min-width: 481px) and (max-width: 768px) {
    .server-card.live-card {
        margin: 0 auto;
        width: calc(100% - 20px);
        max-width: 500px;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .server-card.live-card {
        border: 2px solid #fff;
    }
    
    .card-value {
        color: #fff;
        text-shadow: none;
    }
    
    .progress-bar {
        background: #000;
        border: 1px solid #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .server-card.live-card,
    .progress-fill,
    .live-badge,
    .live-indicator {
        animation: none;
        transition: none;
    }
    
    .server-card.live-card:hover {
        transform: none;
    }
}
/* CANLI Pulse Animasyonu */
@keyframes pulse-animation {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.live-badge {
    animation: pulse-animation 2s infinite;
    position: relative;
}


/* Yenileme bilgisi stili */
.refresh-info {
    font-size: 12px;
    color: #999;
    font-weight: normal;
    margin-left: 10px;
    animation: pulse-animation 2s infinite;
}
