/* ===============================================
   REACTION TEST CSS
   Reaksiyon süresi testi ve oyun UI tasarımı
   Dependencies: gaming-framework.css, main.css
   =============================================== */

/* ========== PAGE LAYOUT ========== */
.page-header {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    color: #000;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-link {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #000;
    transform: translateX(-2px);
}

.page-title {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.page-subtitle {
    color: rgba(0, 0, 0, 0.8);
    font-size: 1rem;
    font-weight: 600;
}

.main-content {
    background: linear-gradient(135deg, #0F1419 0%, #1A1E23 25%, #0D1B2A 50%, #1B263B 75%, #0F1419 100%);
    min-height: calc(100vh - 40px);
    padding: 40px 0;
    position: relative;
}

.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 69, 58, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(50, 215, 75, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ========== GAME STATUS ========== */
.game-status {
    margin-bottom: 30px;
}

.status-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    justify-content: space-around;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    animation: statusScan 3s ease-in-out infinite;
}

.current-score, .best-score, .average-score {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-value {
    font-size: 2rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    font-family: 'Orbitron', monospace;
}

.score-unit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ========== GAME SECTION ========== */
.game-section {
    margin-bottom: 40px;
}

.game-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    min-height: 450px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-container:hover {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

/* ========== GAME SCREENS ========== */
.game-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.game-screen.active {
    opacity: 1;
    visibility: visible;
}

/* Start Screen */
.start-screen {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.05));
}

.start-content {
    text-align: center;
    padding: 40px;
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    animation: iconFloat 3s ease-in-out infinite;
}

.start-content h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.start-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0 0 30px 0;
    font-weight: 500;
}

/* Wait Screen */
.wait-screen {
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.15), rgba(255, 45, 85, 0.1));
}

.wait-content {
    text-align: center;
    padding: 40px;
    position: relative;
}

.wait-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: waitPulse 1.5s ease-in-out infinite;
}

.wait-content h2 {
    color: #FF4757;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-shadow: 0 0 15px rgba(255, 71, 87, 0.5);
}

.wait-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0 0 30px 0;
}

.wait-indicator {
    position: relative;
    margin: 20px auto;
    width: 100px;
    height: 100px;
}

.pulse-ring {
    border: 2px solid rgba(255, 71, 87, 0.3);
    border-radius: 50%;
    height: 100%;
    width: 100%;
    position: absolute;
    animation: pulsate 2s ease-out infinite;
}

.pulse-ring:nth-child(2) {
    animation-delay: 0.5s;
}

.pulse-ring:nth-child(3) {
    animation-delay: 1s;
}

/* Click Screen */
.click-screen {
    background: linear-gradient(135deg, rgba(0, 255, 127, 0.2), rgba(50, 215, 75, 0.15));
    animation: clickScreenPulse 0.5s ease-in-out infinite alternate;
}

.click-content {
    text-align: center;
    padding: 40px;
}

.click-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: clickIconBounce 0.3s ease-in-out infinite;
}

.click-content h2 {
    color: #00FF7F;
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 15px 0;
    text-shadow: 0 0 20px rgba(0, 255, 127, 0.7);
    animation: clickTextGlow 0.5s ease-in-out infinite alternate;
}

.click-content p {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Result Screen */
.result-screen {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.05));
}

.result-content {
    text-align: center;
    padding: 20px;
    max-width: 100%;
    box-sizing: border-box;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: resultFloat 2s ease-in-out infinite;
}

.result-content h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 15px 0;
}

.result-score {
    margin: 10px 0 8px;
}

.result-time {
    font-size: 3rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.result-unit {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-left: 8px;
}

.result-rating {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 8px 0 15px;
    padding: 6px 10px;
    border-radius: 15px;
    display: inline-block;
    max-width: 90%;
    text-align: center;
    line-height: 1.2;
}

.result-rating.excellent {
    background: rgba(0, 255, 127, 0.2);
    color: #00FF7F;
    border: 1px solid rgba(0, 255, 127, 0.3);
}

.result-rating.good {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.result-rating.average {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.result-rating.slow {
    background: rgba(255, 69, 58, 0.2);
    color: #FF4757;
    border: 1px solid rgba(255, 69, 58, 0.3);
}

.result-rating.very-slow {
    background: rgba(255, 69, 58, 0.3);
    color: #FF4757;
    border: 1px solid rgba(255, 69, 58, 0.5);
}

.result-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Early Screen */
.early-screen {
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.2), rgba(255, 45, 85, 0.15));
}

.early-content {
    text-align: center;
    padding: 40px;
}

.early-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: errorShake 0.5s ease-in-out infinite;
}

.early-content h2 {
    color: #FF4757;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-shadow: 0 0 15px rgba(255, 71, 87, 0.5);
}

.early-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0 0 30px 0;
}

/* ========== BUTTONS ========== */
.game-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    min-width: 180px;
    max-width: 220px;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

.game-btn:active {
    transform: translateY(0);
}

.game-btn.secondary {
    background: linear-gradient(135deg, #6B7280 0%, #9CA3AF 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.game-btn.secondary:hover {
    box-shadow: 0 6px 25px rgba(107, 114, 128, 0.4);
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* ========== INSTRUCTIONS ========== */
.instructions-section {
    margin-bottom: 30px;
}

.instructions-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.instructions-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 25px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.instruction-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.instruction-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.instruction-text strong {
    color: #FFD700;
    font-size: 1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.instruction-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.3;
}

/* ========== PERFORMANCE GUIDE ========== */
.performance-section {
    margin-bottom: 40px;
}

.performance-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.performance-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 25px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.performance-item {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid;
    background: rgba(255, 255, 255, 0.02);
}

.performance-item.excellent {
    border-color: rgba(0, 255, 127, 0.3);
    background: rgba(0, 255, 127, 0.05);
}

.performance-item.good {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.05);
}

.performance-item.average {
    border-color: rgba(255, 165, 0, 0.3);
    background: rgba(255, 165, 0, 0.05);
}

.performance-item.slow {
    border-color: rgba(255, 69, 58, 0.3);
    background: rgba(255, 69, 58, 0.05);
}

.perf-range {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Orbitron', monospace;
}

.perf-label {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.excellent .perf-label { color: #00FF7F; }
.good .perf-label { color: #FFD700; }
.average .perf-label { color: #FFA500; }
.slow .perf-label { color: #FF4757; }

.perf-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ========== FOOTER ========== */
.page-footer {
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.page-footer a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-footer a:hover {
    color: #FFA500;
    text-decoration: underline;
}

/* ========== ANIMATIONS ========== */
@keyframes statusScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes waitPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes pulsate {
    0% { transform: scale(0.1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

@keyframes clickScreenPulse {
    from { box-shadow: inset 0 0 50px rgba(0, 255, 127, 0.2); }
    to { box-shadow: inset 0 0 80px rgba(0, 255, 127, 0.4); }
}

@keyframes clickIconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes clickTextGlow {
    from { text-shadow: 0 0 20px rgba(0, 255, 127, 0.7); }
    to { text-shadow: 0 0 30px rgba(0, 255, 127, 1), 0 0 40px rgba(0, 255, 127, 0.5); }
}

@keyframes resultFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .status-card {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .game-container {
        min-height: 320px;
        margin: 0 15px;
    }
    
    .result-content, .start-content, .wait-content, .early-content {
        padding: 15px;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .game-btn {
        min-width: 200px;
        max-width: 240px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .result-rating {
        font-size: 0.9rem;
        padding: 8px 12px;
        margin: 10px 0 20px;
    }
    
    .instructions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .performance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 0;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .game-container {
        min-height: 280px;
        margin: 0 10px;
    }
    
    .result-content, .start-content, .wait-content, .early-content {
        padding: 10px;
    }
    
    .start-content h2, .wait-content h2, .early-content h2 {
        font-size: 1.8rem;
    }
    
    .click-content h2 {
        font-size: 2.2rem;
    }
    
    .result-time {
        font-size: 2.5rem;
    }
    
    .game-btn {
        min-width: 180px;
        max-width: 220px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .result-rating {
        font-size: 0.8rem;
        padding: 6px 10px;
        margin: 8px 0 15px;
    }
    
    .instructions-grid, .performance-grid {
        grid-template-columns: 1fr;
    }
}