/**
 * Feuille de style pour le générateur de rébus
 * Ce fichier doit être placé dans /assets/css/rebus-generator.css
 */

/* Conteneur principal */
.rebus-generator-container,
.rebus-view-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.rebus-view-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* Titres */
.rebus-generator-container h2,
.rebus-view-container h1 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Formulaire */
.rebus-form {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

/* Boutons */
.rebus-btn {
    display: inline-block;
    padding: 10px 15px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    margin-right: 10px;
    margin-bottom: 10px;
}

.rebus-btn-primary {
    background-color: #0073aa;
    color: white;
}

.rebus-btn-primary:hover {
    background-color: #005c88;
}

.rebus-btn-info {
    background-color: #5bc0de;
    color: white;
}

.rebus-btn-info:hover {
    background-color: #46b8da;
}

.rebus-btn-success {
    background-color: #5cb85c;
    color: white;
}

.rebus-btn-success:hover {
    background-color: #4cae4c;
}

.rebus-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.rebus-btn-secondary:hover {
    background-color: #5a6268;
}

.rebus-btn-outline-secondary {
    background-color: transparent;
    border: 1px solid #6c757d;
    color: #6c757d;
}

.rebus-btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.rebus-btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

/* Résultat du rébus */
.rebus-result {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rebus-image-container,
.rebus-image-display {
    text-align: center;
    margin: 20px 0;
}

.rebus-image-container img,
.rebus-image-display img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Actions */
.rebus-actions {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.email-share-form,
.buddyboss-share-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.buddyboss-share-form {
    width: 100%;
}

.buddyboss-share-form textarea {
    width: 100%;
    min-height: 80px;
    margin-bottom: 10px;
}

.share-link-container {
    display: flex;
    margin: 15px 0;
    align-items: center;
}

.share-link-container input {
    flex-grow: 1;
    margin-right: 10px;
}

/* Notifications et alertes */
.alert {
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.action-message {
    margin: 15px 0;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    margin: 15px 0;
    text-align: center;
}

/* Indicateur de chargement */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0073aa;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

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

/* Lien de retour */
.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #0073aa;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .rebus-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .email-share-form,
    .buddyboss-share-form {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        margin-right: 0;
    }
    
    .share-link-container {
        flex-direction: column;
    }
    
    .share-link-container input {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Solution du rébus */
.rebus-solution {
    margin: 30px 0;
}

.rebus-solution h3 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.rebus-solution blockquote {
    background-color: #f9f9f9;
    border-left: 4px solid #0073aa;
    padding: 15px;
    margin: 0;
    font-size: 1.1em;
    font-style: italic;
    color: #555;
}
