/* Transfer Tahmin Oyunu - Ana Stiller */

.tto-game-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    color: #ffffff;
}

/* Ekran Stilleri */
.tto-screen {
    display: none;
    padding: 40px;
    text-align: center;
}

.tto-screen.active {
    display: block;
}

/* Başlangıç Ekranı */
.tto-start-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
}

.tto-start-content p {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 30px;
}

.tto-game-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.info-icon {
    font-size: 2rem;
}

.info-text {
    font-size: 0.9rem;
    color: #d0d0d0;
    font-weight: 500;
}

/* Buton Stilleri */
.tto-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
    /* Touch-friendly minimum boyut */
    min-height: 44px;
    min-width: 44px;
    /* Touch için daha iyi görünüm */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.tto-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tto-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.tto-btn-secondary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border: 2px solid #3b82f6;
}

.tto-btn-secondary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Soru Ekranı */
.tto-question-content {
    position: relative;
}

.tto-progress {
    margin-bottom: 30px;
}

.tto-progress-bar {
    width: 100%;
    height: 8px;
    background: #333333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.tto-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.tto-progress-text {
    font-size: 0.9rem;
    color: #b0b0b0;
    font-weight: 500;
}

.tto-score-display {
    position: absolute;
    top: 0;
    right: 0;
    background: #2d2d2d;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #444444;
}

.tto-score-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.tto-score-value {
    font-size: 1.2rem;
    margin-left: 5px;
}

.tto-timer-display {
    position: absolute;
    top: 0;
    left: 0;
    background: #2d2d2d;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #444444;
}

.tto-timer-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.tto-timer-value {
    font-size: 1.2rem;
    margin-left: 5px;
}

.tto-timer-value.warning {
    color: #f59e0b;
    animation: pulse 1s infinite;
}

.tto-timer-value.danger {
    color: #ef4444;
    animation: pulse 0.5s infinite;
}

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

.tto-question-container {
    margin-top: 60px;
}

.tto-player-info {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tto-player-image {
    flex-shrink: 0;
}

.tto-player-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.tto-player-details {
    flex: 1;
    text-align: left;
}

.tto-player-details h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-left: 15px;
}

.tto-player-details h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 2px;
}

.player-stats {
    margin-bottom: 30px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #4a5568 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #4a5568;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #a0aec0;
    font-weight: 500;
    font-size: 0.95rem;
}

.stat-item span:last-child {
    color: #ffffff !important;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

.market-value-section {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid #4a5568;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.market-value-section h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-align: center;
}

.market-value-section p {
    color: #a0aec0;
    margin-bottom: 15px;
    text-align: center;
}

.market-value-input {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.market-value-input input {
    background: #1a202c;
    border: 2px solid #4a5568;
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    width: 150px;
    text-align: center;
    transition: all 0.3s ease;
    /* Touch-friendly input */
    min-height: 44px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.market-value-input input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.currency {
    color: #a0aec0;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Piyasa Değeri Sonuç Stilleri */
.market-value-result {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.market-value-result h4 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-align: center;
}

.result-details p {
    color: #a0aec0;
    margin: 5px 0;
    text-align: center;
}

.bonus-text {
    color: #4ade80 !important;
    font-weight: 600;
    font-size: 1.1rem;
}

.no-bonus-text {
    color: #f87171 !important;
    font-weight: 500;
}

/* Piyasa Değeri Uyarı Stilleri */
.market-value-warning {
    background: #fef3c7;
    color: #92400e;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #f59e0b;
    text-align: center;
    font-weight: 600;
    margin-top: 10px;
    animation: warningPulse 1s ease-in-out;
}

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

.tto-question-text h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.4;
}

.tto-answers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.tto-answer-btn {
    padding: 20px;
    border: 2px solid #4a5568;
    border-radius: 12px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Touch-friendly optimizasyonlar */
    min-width: 44px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.tto-answer-btn:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.tto-answer-btn.correct {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
    animation: correctPulse 0.6s ease;
}

.tto-answer-btn.wrong {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    animation: wrongShake 0.6s ease;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.tto-feedback {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tto-feedback-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#feedback-text {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
}

#feedback-text.correct {
    background: #1e4d2b;
    color: #4ade80;
    border: 1px solid #22c55e;
}

#feedback-text.wrong {
    background: #4c1d1d;
    color: #f87171;
    border: 1px solid #ef4444;
}

/* Sonraki Soru Butonu - Mavi Tonlarında */
#next-question-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 2px solid #3b82f6 !important;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

#next-question-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    border-color: #2563eb !important;
}

/* Sonuç Ekranı */
.tto-result-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.tto-final-score {
    margin-bottom: 40px;
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 5px;
}

.tto-score-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.score-detail {
    background: #2d2d2d;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #444444;
}

.detail-label {
    display: block;
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.tto-leaderboard {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #444444;
}

.tto-leaderboard h3 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1.5rem;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #333333;
}

.leaderboard-item .rank {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.leaderboard-item .player {
    flex: 1;
    margin-left: 15px;
    font-weight: 500;
    color: #ffffff;
}

.leaderboard-item .score {
    font-weight: 700;
    color: #667eea;
}

.tto-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Loading */
.tto-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.tto-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333333;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.tto-loading p {
    font-size: 1.1rem;
    color: #b0b0b0;
    font-weight: 500;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .tto-game-container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .tto-screen {
        padding: 20px;
    }
    
    .tto-start-content h2 {
        font-size: 2rem;
    }
    
    .tto-game-info {
        gap: 20px;
    }
    
    .tto-answers {
        grid-template-columns: 1fr;
    }
    
    .tto-player-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .tto-player-image img {
        width: 120px;
        height: 120px;
    }
    
    .tto-player-details {
        text-align: center;
    }
    
    .tto-player-details h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .player-stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
        margin-bottom: 15px;
    }
    
    .stat-item {
        font-size: 0.9rem;
    }
    
    .market-value-section {
        margin-top: 15px;
    }
    
    .market-value-section h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .market-value-section p {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .market-value-input {
        flex-direction: column;
        gap: 5px;
    }
    
    .market-value-input input {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .tto-question-text h3 {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .tto-answers {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tto-answer-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .tto-score-details {
        grid-template-columns: 1fr;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .tto-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .tto-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .tto-game-container {
        padding: 15px;
        margin: 10px;
    }
    
    .tto-screen {
        padding: 15px;
    }
    
    .tto-start-content h2 {
        font-size: 1.5rem;
    }
    
    .tto-start-content p {
        font-size: 0.9rem;
    }
    
    .tto-game-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-item {
        font-size: 0.85rem;
    }
    
    .tto-progress {
        margin-bottom: 15px;
    }
    
    .tto-progress-text {
        font-size: 0.8rem;
    }
    
    .tto-score-display,
    .tto-timer-display {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .tto-player-image img {
        width: 100px;
        height: 100px;
    }
    
    .tto-player-details h2 {
        font-size: 1.1rem;
    }
    
    .stat-item {
        font-size: 0.8rem;
    }
    
    .market-value-section h3 {
        font-size: 0.9rem;
    }
    
    .market-value-section p {
        font-size: 0.8rem;
    }
    
    .market-value-input input {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .tto-question-text h3 {
        font-size: 0.9rem;
    }
    
    .tto-answer-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .tto-feedback {
        padding: 15px;
    }
    
    .tto-feedback-content {
        font-size: 0.9rem;
    }
    
    .market-value-result {
        padding: 12px;
    }
    
    .market-value-result h4 {
        font-size: 1rem;
    }
    
    .result-details p {
        font-size: 0.85rem;
    }
    
    .tto-result-content h2 {
        font-size: 1.3rem;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-number {
        font-size: 1.8rem;
    }
    
    .score-label {
        font-size: 0.8rem;
    }
    
    .tto-score-details {
        gap: 8px;
    }
    
    .score-detail {
        font-size: 0.85rem;
    }
    
    .tto-leaderboard h3 {
        font-size: 1.1rem;
    }
    
    .leaderboard-item {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .tto-actions {
        flex-direction: column;
        gap: 10px;
    }
    
            .tto-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

.tto-message.warning {
    background: #ffc107;
    color: #212529;
}

.tto-message.info {
    background: #17a2b8;
    color: white;
}

