/* Sistem testi özel stilleri */

.system-container {
    background: linear-gradient(135deg, #9b59b6 0%, #3498db 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

/* System Cards */
.system-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.system-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.system-card.loading {
    position: relative;
    overflow: hidden;
}

.system-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: system-shimmer 2s infinite;
}

@keyframes system-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* System Header */
.system-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.system-header i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.system-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* System Data */
.system-data {
    margin-bottom: 1rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.data-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    margin-right: 1rem;
}

.data-value {
    font-weight: bold;
    color: white;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-align: right;
    flex: 1;
    word-break: break-all;
}

.data-value.small {
    font-size: 0.8rem;
    line-height: 1.2;
}

/* Memory Visualization */
.memory-visualization {
    margin-top: 1rem;
}

.memory-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.memory-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #27ae60, #f39c12, #e74c3c);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.memory-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: memory-shimmer 2s infinite;
}

@keyframes memory-shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Performance Visualization */
.performance-visualization {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

#fps-chart {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.feature-item.supported {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.2);
}

.feature-item.not-supported {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.2);
}

.feature-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.feature-icon.supported {
    color: #27ae60;
}

.feature-icon.not-supported {
    color: #e74c3c;
}

.feature-name {
    font-size: 0.8rem;
    font-weight: 500;
}

/* System Controls */
.system-controls {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.system-controls .btn {
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.system-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* System Info */
.system-info {
    border: 1px solid rgba(13, 110, 253, 0.1);
    transition: all 0.3s ease;
}

.system-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.system-info .badge {
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.online {
    background: #27ae60;
    animation: status-pulse 2s infinite;
}

.status-indicator.offline {
    background: #e74c3c;
}

.status-indicator.unknown {
    background: #95a5a6;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Performance Indicators */
.performance-good {
    color: #27ae60;
}

.performance-medium {
    color: #f39c12;
}

.performance-poor {
    color: #e74c3c;
}

/* Loading States */
.loading-text {
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: 'Yükleniyor'; }
    40% { content: 'Yükleniyor.'; }
    60% { content: 'Yükleniyor..'; }
    80%, 100% { content: 'Yükleniyor...'; }
}

/* Fullscreen Mode */
.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: linear-gradient(135deg, #9b59b6 0%, #3498db 100%);
    overflow-y: auto;
    padding: 2rem;
}

.fullscreen-mode .system-container {
    background: transparent;
    padding: 0;
    height: 100%;
}

.fullscreen-exit {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Export Animation */
.exporting {
    position: relative;
}

.exporting::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(39, 174, 96, 0.2);
    border-radius: 10px;
    animation: export-flash 0.5s ease;
}

@keyframes export-flash {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 992px) {
    .system-container {
        padding: 1rem;
    }
    
    .system-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .system-header h5 {
        font-size: 1rem;
    }
    
    .system-header i {
        font-size: 1.2rem;
    }
    
    .data-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .data-label {
        margin-right: 0;
    }
    
    .data-value {
        width: 100%;
        text-align: left;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .system-controls {
        padding: 1rem;
    }
    
    .system-controls .btn {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .system-card {
        padding: 0.75rem;
    }
    
    .system-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .system-header h5 {
        font-size: 0.9rem;
    }
    
    .data-label {
        font-size: 0.8rem;
    }
    
    .data-value {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .data-value.small {
        font-size: 0.7rem;
    }
    
    .memory-bar {
        height: 15px;
    }
    
    #fps-chart {
        width: 150px;
        height: 50px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        padding: 0.4rem;
    }
    
    .feature-name {
        font-size: 0.7rem;
    }
    
    .system-controls .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .system-container {
        padding: 0.75rem;
    }
    
    .system-card {
        padding: 0.5rem;
    }
    
    .system-header h5 {
        font-size: 0.8rem;
    }
    
    .system-header i {
        font-size: 1rem;
    }
    
    .data-label {
        font-size: 0.7rem;
    }
    
    .data-value {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
    }
    
    .data-value.small {
        font-size: 0.6rem;
    }
    
    .memory-bar {
        height: 12px;
    }
    
    #fps-chart {
        width: 120px;
        height: 40px;
    }
    
    .feature-item {
        padding: 0.3rem;
    }
    
    .feature-icon {
        font-size: 0.8rem;
    }
    
    .feature-name {
        font-size: 0.6rem;
    }
    
    .system-controls {
        padding: 0.75rem;
    }
    
    .system-controls .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .fullscreen-mode {
        padding: 1rem;
    }
    
    .fullscreen-exit {
        top: 10px;
        right: 10px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Accessibility */
.system-controls .btn:focus,
.feature-item:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .system-container {
        background: #000;
        border: 2px solid #fff;
    }
    
    .system-card {
        background: #000;
        border: 2px solid #fff;
    }
    
    .feature-item.supported {
        background: #0f0;
        color: #000;
    }
    
    .feature-item.not-supported {
        background: #f00;
        color: #fff;
    }
    
    .memory-bar {
        border-color: #fff;
    }
    
    .memory-fill {
        background: #0f0;
    }
    
    #fps-chart {
        border-color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .system-card,
    .system-controls .btn,
    .feature-item,
    .memory-fill {
        transition: none;
        animation: none;
    }
    
    .system-card:hover,
    .system-controls .btn:hover,
    .feature-item:hover {
        transform: none;
    }
    
    .system-card.loading::after,
    .memory-fill::after,
    .status-indicator.online,
    .loading-text {
        animation: none;
    }
    
    .exporting::after {
        animation: none;
        opacity: 0;
    }
}

/* Print Styles */
@media print {
    .system-controls {
        display: none;
    }
    
    .system-container {
        background: white;
        color: black;
    }
    
    .system-card {
        background: white;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .data-value {
        background: #f5f5f5;
        color: black;
    }
    
    .feature-item {
        background: #f5f5f5;
    }
    
    .memory-bar,
    #fps-chart {
        background: #f5f5f5;
        border: 1px solid #ccc;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .system-info {
        background: #2c3e50;
        color: white;
    }
    
    .system-info .text-muted {
        color: rgba(255, 255, 255, 0.7) !important;
    }
}

/* Animation Performance */
.system-card,
.feature-item,
.memory-fill {
    will-change: transform;
}

.system-card.loading::after,
.memory-fill::after {
    will-change: left, opacity;
}

/* Custom Scrollbar */
.system-container::-webkit-scrollbar {
    width: 8px;
}

.system-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.system-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.system-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
