/* Quotes Game Styles */

.quotes-game-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

#quote-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#quote-container.correct-answer {
    animation: pulse-success 0.5s ease;
}

#quote-container.wrong-answer {
    animation: shake 0.5s ease;
}

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

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

#quote-text {
    font-size: 28px;
    font-style: italic;
    color: white;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#quote-context {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-style: italic;
}

#search-container {
    margin-bottom: 30px;
    position: relative;
}

#character-search {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 3px solid #667eea;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
}

#character-search:focus {
    border-color: #764ba2;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

#character-search:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

#suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #667eea;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e0e0e0;
}

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

.suggestion-item:hover {
    background-color: #667eea;
    color: white;
}

#actions-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

#give-up-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

#give-up-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

#next-quote-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

#next-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

#try-again-btn {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

#try-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 112, 154, 0.4);
}

#result-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.result-message {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.result-message.correct {
    color: #22c55e;
}

.result-message.wrong {
    color: #ef4444;
}

.correct-icon, .wrong-icon {
    font-size: 28px;
    margin-right: 5px;
}

#correct-character {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    margin-top: 10px;
}

#stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
}

#current-streak {
    color: #f5576c;
}

#accuracy {
    color: #22c55e;
}

/* Responsive */
@media (max-width: 768px) {
    .quotes-game-container {
        padding: 10px;
        margin: 20px auto;
    }

    #quote-container {
        padding: 25px;
    }

    #quote-text {
        font-size: 22px;
    }

    #character-search {
        font-size: 16px;
    }

    #actions-container {
        flex-direction: column;
    }

    .stat-box {
        padding: 15px;
    }

    .stat-value {
        font-size: 24px;
    }
}
