/* Daily Quiz Plugin Styles */

#daily-quiz-container {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#quiz-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

#quiz-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

#quiz-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

#quiz-content {
    padding: 30px 20px;
}

/* Character Image */
#character-image {
    text-align: center;
    margin-bottom: 30px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e9ecef;
}

#quiz-image {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#image-placeholder {
    color: #6c757d;
    font-size: 18px;
}

/* Input Section */
#guess-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#character-guess {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#character-guess:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#submit-guess {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

#submit-guess:hover {
    background: #5a67d8;
}

#submit-guess:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Hints Section */
#hints-container {
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

#hints-container h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 18px;
}

.hint {
    background: white;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    animation: fadeIn 0.5s ease-in;
}

.hint:last-child {
    margin-bottom: 0;
}

.hint strong {
    color: #667eea;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Guesses Section */
#guesses-container {
    margin-bottom: 20px;
}

#guesses-container h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 18px;
}

#guesses-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guess-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 6px;
    animation: slideIn 0.3s ease-out;
}

.guess-item.correct {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.guess-item.incorrect {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.guess-text {
    font-weight: 500;
}

.guess-status {
    font-size: 18px;
    font-weight: bold;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Game Status */
#game-status {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 20px;
}

#attempts-left {
    font-weight: 600;
    color: #495057;
    font-size: 16px;
}

/* Game Complete Section */
#game-complete {
    background: #f8f9fa;
    padding: 30px 20px;
    text-align: center;
    border-top: 2px solid #e9ecef;
}

#result-message {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #495057;
}

#share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

#share-result,
#play-tomorrow {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#share-result {
    background: #28a745;
    color: white;
}

#share-result:hover {
    background: #218838;
}

#play-tomorrow {
    background: #6c757d;
    color: white;
}

#play-tomorrow:hover {
    background: #5a6268;
}

/* Error and No Quiz States */
.no-quiz,
.error {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: #6c757d;
}

.error {
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    #daily-quiz-container {
        margin: 10px;
        border-radius: 0;
    }
    
    #quiz-header {
        padding: 20px 15px;
    }
    
    #quiz-header h2 {
        font-size: 24px;
    }
    
    #quiz-content {
        padding: 20px 15px;
    }
    
    #guess-input-container {
        flex-direction: column;
    }
    
    #character-guess {
        margin-bottom: 10px;
    }
    
    #share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    #share-result,
    #play-tomorrow {
        width: 200px;
    }
}

@media (max-width: 480px) {
    #quiz-header h2 {
        font-size: 20px;
    }
    
    #quiz-header p {
        font-size: 14px;
    }
    
    #character-image {
        min-height: 150px;
    }
    
    #quiz-image {
        max-height: 180px;
    }
    
    .hint {
        padding: 10px 12px;
    }
    
    .guess-item {
        padding: 10px 12px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    #daily-quiz-container {
        background: #1a202c;
        color: #e2e8f0;
    }
    
    #character-image {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    #character-guess {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    #hints-container,
    #game-status,
    #game-complete {
        background: #2d3748;
    }
    
    .hint {
        background: #1a202c;
    }
    
    .guess-item.correct {
        background: #22543d;
        color: #9ae6b4;
    }
    
    .guess-item.incorrect {
        background: #742a2a;
        color: #feb2b2;
    }
}