/* Aequitas Facebook Share - Version Production */

.aequitas-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.aequitas-modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 25px;
    box-sizing: border-box;
}

.aequitas-modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #333;
    text-align: center;
}

.aequitas-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    z-index: 10;
    background: none;
    border: none;
    padding: 5px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.aequitas-modal-close:hover {
    color: #333;
    background: #f0f0f0;
}

.generated-image-container {
    text-align: center;
    margin-bottom: 20px;
}

.generated-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.aequitas-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.aequitas-modal-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    min-width: 120px;
    transition: all 0.2s ease;
}

/* Boutons spécifiques de la modal */
#aequitas-confirm-share {
    background: #1877f2 !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(24, 119, 242, 0.2) !important;
}

#aequitas-confirm-share:hover:not(:disabled) {
    background: #166fe5 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.3) !important;
}

#aequitas-confirm-share:disabled {
    background: #cccccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

#aequitas-cancel-share {
    background: #f5f5f5 !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
}

#aequitas-cancel-share:hover {
    background: #e8e8e8 !important;
    color: #333 !important;
    transform: translateY(-1px);
}

/* Classes génériques boutons */
.btn-primary {
    background: #1877f2 !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(24, 119, 242, 0.2) !important;
}

.btn-primary:hover:not(:disabled) {
    background: #166fe5 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.3) !important;
}

.btn-primary:disabled {
    background: #cccccc !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none !important;
}

.btn-secondary {
    background: #f5f5f5 !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
}

.btn-secondary:hover {
    background: #e8e8e8 !important;
    color: #333 !important;
    transform: translateY(-1px);
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    font-size: 16px;
}

.error {
    text-align: center;
    padding: 20px;
    color: #d32f2f;
    background: #ffebee;
    border-radius: 6px;
    border: 1px solid #ffcdd2;
    font-size: 14px;
}

.aequitas-fb-share-container {
    margin: 20px 0;
    text-align: center;
}

.aequitas-fb-share-btn {
    background: linear-gradient(45deg, #1877f2, #42a5f5);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.2);
}

.aequitas-fb-share-btn:hover {
    background: linear-gradient(45deg, #166fe5, #2196f3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.3);
}

.aequitas-fb-share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.2);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .aequitas-modal {
        padding: 10px;
    }
    
    .aequitas-modal-content {
        max-width: 100%;
        padding: 20px;
        border-radius: 12px 12px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        max-height: 85vh;
    }
    
    .aequitas-modal-content h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .aequitas-modal-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        position: sticky;
        bottom: 0;
        background: white;
        padding: 15px 0 5px 0;
        border-top: 1px solid #eee;
    }
    
    .aequitas-modal-actions button {
        width: 100%;
        margin: 0;
        padding: 14px;
        font-size: 16px;
    }
    
    .aequitas-modal-close {
        top: 10px;
        right: 15px;
        font-size: 20px;
        background: #f0f0f0;
        padding: 5px 8px;
        border-radius: 4px;
    }
}