/**
 * Video Performance Monitor CSS
 * Video performans izleme sistemi için stiller
 */

/* Performance notification */
.video-performance-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    font-family: 'Montserrat', sans-serif;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.notification-header button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.notification-header button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.notification-content {
    padding: 20px;
}

.notification-content p {
    margin: 0 0 15px 0;
    font-weight: 500;
}

.notification-content ul {
    margin: 0;
    padding-left: 20px;
}

.notification-content li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Performance debug panel */
.video-performance-debug {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-width: 400px;
    z-index: 9999;
    display: none;
}

.video-performance-debug.show {
    display: block;
}

.video-performance-debug h4 {
    margin: 0 0 10px 0;
    color: #667eea;
}

.video-performance-debug .metric {
    margin-bottom: 5px;
}

.video-performance-debug .metric-label {
    color: #ccc;
}

.video-performance-debug .metric-value {
    color: #fff;
    font-weight: bold;
}

/* Performance score indicator */
.video-performance-score {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    display: none;
}

.video-performance-score.show {
    display: block;
}

.video-performance-score.excellent {
    background: rgba(34, 197, 94, 0.9);
}

.video-performance-score.good {
    background: rgba(59, 130, 246, 0.9);
}

.video-performance-score.warning {
    background: rgba(245, 158, 11, 0.9);
}

.video-performance-score.poor {
    background: rgba(239, 68, 68, 0.9);
}

/* Video loading indicators */
.video-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10;
    display: none;
}

.video-loading-indicator.show {
    display: block;
}

.video-loading-indicator .spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Video error states */
.video-error-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    font-family: 'Montserrat', sans-serif;
}

.video-error-state .error-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.video-error-state .error-message {
    font-size: 14px;
    max-width: 200px;
}

/* Performance metrics display */
.video-metrics-display {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    max-width: 300px;
    z-index: 9999;
    display: none;
}

.video-metrics-display.show {
    display: block;
}

.video-metrics-display h3 {
    margin: 0 0 15px 0;
    color: #667eea;
    font-size: 16px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-label {
    color: #ccc;
}

.metric-value {
    color: #fff;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-performance-notification {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
    
    .video-performance-debug {
        max-width: calc(100vw - 40px);
        font-size: 10px;
    }
    
    .video-metrics-display {
        max-width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .video-performance-notification {
        background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    }
    
    .video-performance-debug {
        background: rgba(17, 24, 39, 0.95);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .video-performance-notification {
        animation: none;
    }
    
    .video-loading-indicator .spinner {
        animation: none;
    }
} 