/* Ekran testi özel stilleri */

/* Fullscreen container */
#fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
}

#fullscreen-container.show {
    display: flex !important;
}

/* Test canvas */
#test-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998;
}

/* Color display overlay */
#color-display {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
}

#color-name {
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* FPS counter */
.fps-display {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 10000;
    font-family: 'Courier New', monospace;
}

/* Exit button */
.exit-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.exit-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Screen properties grid */
.property-card {
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(13, 110, 253, 0.1);
    transition: transform 0.2s ease;
    cursor: default;
}

.property-card:hover {
    transform: translateY(-2px);
}

.property-icon {
    color: var(--primary-color);
}

.property-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.property-value {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
}

/* WebGL animasyonları */
@keyframes pulse {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.gradient-animation {
    animation: pulse 8s infinite alternate;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #color-name {
        font-size: 3rem;
    }
    
    .fps-display {
        bottom: 10px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .exit-btn {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #color-name {
        font-size: 2rem;
    }
}

/* Test card hover effects */
.test-card i {
    transition: all 0.3s ease;
}

.test-card:hover i {
    transform: scale(1.1);
    color: var(--primary-color) !important;
}

/* Loading states */
.test-loading {
    position: relative;
    overflow: hidden;
}

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

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

/* Error states */
.test-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
}

/* Success states */
.test-success {
    background-color: #d1edff;
    color: #0c5460;
    border: 1px solid #b8daff;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .test-card {
        border: 2px solid var(--dark-color);
    }
    
    .property-card {
        border: 2px solid var(--dark-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animated-image,
    .test-card,
    .property-card,
    .exit-btn {
        animation: none;
        transition: none;
    }
}
