/**
 * Styles admin pour Gen Article Universel
 */

/* Container principal */
#gau-generator-container {
    padding: 5px 0;
}

/* Résultats */
.gau-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
}

.gau-success strong {
    display: block;
    margin-bottom: 8px;
}

.gau-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
}

.gau-error strong {
    display: block;
    margin-bottom: 8px;
}

/* Modal d'images */
#gau-image-browser-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
}

.gau-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.gau-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gau-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.gau-modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.gau-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.gau-modal-close:hover {
    color: #333;
}

.gau-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Grille d'images */
.gau-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gau-image-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.gau-image-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.gau-image-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.gau-image-info {
    padding: 12px;
}

.gau-image-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gau-image-source {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.gau-image-source a {
    color: #0073aa;
    text-decoration: none;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gau-image-source a:hover {
    text-decoration: underline;
}

/* Badges de source */
.gau-source-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    background: #e0e0e0;
    color: #333;
}

.gau-source-badge.google {
    background: #4285f4;
    color: #fff;
}

.gau-source-badge.amazon {
    background: #ff9900;
    color: #111;
}

.gau-source-badge.unsplash {
    background: #111;
    color: #fff;
}

.gau-source-badge.brand {
    background: #28a745;
    color: #fff;
}

/* Boutons d'action */
.gau-image-actions {
    display: flex;
    gap: 6px;
}

.gau-image-actions button {
    flex: 1;
    padding: 6px 8px;
    font-size: 11px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.gau-btn-featured {
    background: #ffc107;
    color: #111;
}

.gau-btn-featured:hover {
    background: #e0a800;
}

.gau-btn-insert {
    background: #0073aa;
    color: #fff;
}

.gau-btn-insert:hover {
    background: #005a87;
}

/* Styles pour le contenu généré */
.entry-content ul,
.post-content ul {
    margin-left: 24px;
}

.entry-content ul li,
.post-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Encadrés */
.gau-note-box {
    background: #e3f2fd;
    padding: 20px;
    border-left: 4px solid #2196f3;
    margin: 24px 0;
    border-radius: 4px;
}

.gau-note-box .title {
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #1565c0;
    font-size: 1.1em;
}

.gau-note-box .content {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.gau-warning-box {
    background: #fff3cd;
    padding: 20px;
    border-left: 4px solid #ff9800;
    margin: 24px 0;
    border-radius: 4px;
}

.gau-warning-box .title {
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #e65100;
    font-size: 1.1em;
}

.gau-warning-box .content {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

/* CTA Block styles */
.gau-cta-block {
    padding: 18px;
    text-align: center;
    margin: 28px 0;
    border-radius: 12px;
}

.gau-cta-block.dark {
    background: #111;
    color: #fff;
}

.gau-cta-block.light {
    background: #f8f9fa;
    color: #111;
}

.gau-cta-block.blue {
    background: #232f3e;
    color: #fff;
}

.gau-cta-block.green {
    background: #e8f5e9;
    color: #1b5e20;
}

.gau-cta-block.orange {
    background: #fff3e0;
    color: #e65100;
}

.gau-cta-button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

.gau-cta-mention {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .gau-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .gau-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .gau-image-preview {
        height: 120px;
    }
    
    .gau-image-actions {
        flex-direction: column;
    }
}

