/**
 * Styles for verse image generator UI
 */

.verse-image-generator {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.verse-image-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.verse-image-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #16a085;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}

.verse-image-btn:hover {
    background: #138d75;
    color: white;
}

.verse-image-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.verse-image-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.verse-image-preview {
    margin-top: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.verse-image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.verse-image-loading {
    display: inline-block;
    margin-left: 10px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Word selector styles */
.word-selector {
    text-align: left;
}

.selectable-word {
    user-select: none;
}

.selectable-word:hover {
    background: #e3f2fd !important;
    border-color: #2196f3 !important;
    transform: scale(1.05);
}

.verse-image-highlight-section {
    text-align: left;
}

#clear-highlight:hover {
    background: #d32f2f;
}

/* Verse image caption styling */
.verse-image-figure {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #16a085;
}

.verse-image-figure figcaption {
    text-align: left;
}

.verse-image-figure figcaption strong {
    display: block;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.verse-image-figure figcaption p {
    margin: 0;
    line-height: 1.8;
    color: #555;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .verse-image-actions {
        flex-direction: column;
    }
    
    .verse-image-btn {
        width: 100%;
        justify-content: center;
    }
    
    .selectable-word {
        padding: 6px 10px;
        font-size: 14px;
    }
}
