/* Fare testi özel stilleri */

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

/* Mouse Test Area */
.mouse-test-area {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    height: 400px;
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.test-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.test-overlay h3 {
    margin-bottom: 1rem;
    color: white;
}

.test-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.mouse-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.6);
    animation: mouse-pulse 2s infinite;
}

@keyframes mouse-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Mouse Trail Canvas */
#mouse-trail-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Click Targets */
.click-targets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.click-target {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.click-target:hover {
    transform: scale(1.1);
    background: linear-gradient(145deg, #27ae60, #229954);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.click-target.clicked {
    background: linear-gradient(145deg, #f39c12, #e67e22);
    transform: scale(0.8);
    animation: target-hit 0.5s ease;
}

@keyframes target-hit {
    0% { transform: scale(1.2); }
    50% { transform: scale(0.8); }
    100% { transform: scale(1); }
}

/* Drag Test Area */
.drag-test-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 100px;
    align-items: center;
    z-index: 5;
}

.drag-source {
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: grab;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.drag-source:active {
    cursor: grabbing;
    transform: rotate(5deg);
}

.drag-source.dragging {
    opacity: 0.7;
    transform: scale(1.1) rotate(5deg);
}

.drag-target {
    width: 120px;
    height: 80px;
    border: 3px dashed rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.drag-target.drag-over {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.2);
    color: white;
    transform: scale(1.05);
}

.drag-target.drop-success {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.3);
    animation: drop-success 0.5s ease;
}

@keyframes drop-success {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

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

.mouse-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);
}

/* Mouse Stats */
.mouse-stats {
    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.1);
    color: white;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stat-card i {
    color: rgba(255, 255, 255, 0.8);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Button Status */
.button-status h6 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.button-indicator {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.button-indicator i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.7);
}

.button-indicator span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.button-indicator.active {
    background: linear-gradient(145deg, #27ae60, #229954);
    border-color: #27ae60;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.button-indicator.active i,
.button-indicator.active span {
    color: white;
}

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

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

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

/* Active Test States */
.mouse-test-area.movement-test {
    cursor: crosshair;
}

.mouse-test-area.click-test {
    cursor: pointer;
}

.mouse-test-area.drag-test {
    cursor: grab;
}

/* Trail Effects */
.trail-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    animation: trail-fade 1s ease-out forwards;
}

@keyframes trail-fade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Click Ripple Effect */
.click-ripple {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: ripple-expand 0.6s ease-out forwards;
}

@keyframes ripple-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .mouse-container {
        padding: 1rem;
    }
    
    .mouse-test-area {
        height: 300px;
    }
    
    .drag-test-area {
        gap: 60px;
        flex-direction: column;
    }
    
    .click-target {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .mouse-controls {
        padding: 1rem;
    }
    
    .mouse-stats {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .mouse-test-area {
        height: 250px;
    }
    
    .test-overlay {
        padding: 1.5rem;
    }
    
    .test-overlay h3 {
        font-size: 1.2rem;
    }
    
    .mouse-icon {
        font-size: 2rem;
    }
    
    .click-target {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .drag-source {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .drag-target {
        width: 100px;
        height: 60px;
        font-size: 0.8rem;
    }
    
    .mouse-controls .row {
        --bs-gutter-x: 0.5rem;
    }
    
    .mouse-controls .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .button-indicator {
        padding: 0.5rem 0.75rem;
    }
    
    .button-indicator i {
        font-size: 1rem;
    }
    
    .button-indicator span {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .mouse-container {
        padding: 0.75rem;
    }
    
    .mouse-test-area {
        height: 200px;
    }
    
    .test-overlay {
        padding: 1rem;
    }
    
    .test-overlay h3 {
        font-size: 1rem;
    }
    
    .test-overlay p {
        font-size: 0.9rem;
    }
    
    .mouse-icon {
        font-size: 1.5rem;
    }
    
    .click-target {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .drag-test-area {
        gap: 40px;
    }
    
    .drag-source {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .drag-target {
        width: 80px;
        height: 50px;
        font-size: 0.7rem;
    }
    
    .mouse-controls {
        padding: 0.75rem;
    }
    
    .mouse-controls .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .mouse-stats {
        padding: 0.75rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .button-indicator {
        padding: 0.4rem 0.6rem;
        margin-bottom: 0.5rem;
    }
}

/* Accessibility */
.mouse-controls .btn:focus,
.click-target:focus,
.drag-source:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .mouse-container {
        background: #000;
        border: 2px solid #fff;
    }
    
    .mouse-test-area {
        background: #000;
        border: 2px solid #fff;
    }
    
    .test-overlay {
        background: #000;
        border: 1px solid #fff;
    }
    
    .click-target {
        background: #f00;
        border: 2px solid #fff;
    }
    
    .click-target:hover {
        background: #0f0;
    }
    
    .drag-source {
        background: #00f;
        border: 2px solid #fff;
    }
    
    .drag-target {
        border-color: #fff;
        background: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .mouse-icon,
    .click-target,
    .drag-source,
    .stat-card,
    .button-indicator,
    .mouse-controls .btn {
        animation: none;
        transition: none;
    }
    
    .click-target:hover,
    .stat-card:hover,
    .mouse-controls .btn:hover {
        transform: none;
    }
    
    .trail-point,
    .click-ripple {
        animation: none;
        opacity: 0;
    }
}

/* Print Styles */
@media print {
    .mouse-test-area,
    .mouse-controls {
        display: none;
    }
    
    .mouse-container {
        background: white;
        color: black;
    }
    
    .mouse-stats {
        background: white;
        border: 1px solid #ccc;
    }
}
