/**
 * AI Video Generator Eklentisi için Ön Yüz Stilleri
 *
 * Bu dosya, video oluşturma formunun ve sonuç alanının görünümünü düzenler.
 */

/* --- Ana Konteyner --- */
.aivg-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Form --- */
.aivg-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Form Grubu ve Etiket --- */
.aivg-form-group {
    display: flex;
    flex-direction: column;
}

.aivg-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

/* --- Metin Alanı (Textarea) --- */
.aivg-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Padding ve border'ın genişliği etkilememesi için */
}

.aivg-form-group textarea:focus {
    outline: none;
    border-color: #0073aa; /* WordPress'in ana mavi rengi */
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* --- Buton --- */
.aivg-button {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #0073aa;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.aivg-button:hover:not(:disabled) {
    background-color: #005a87;
}

.aivg-button:disabled {
    background-color: #a0a5aa;
    cursor: not-allowed;
    opacity: 0.7;
}

/* --- Sonuç ve Mesaj Alanı --- */
.aivg-result-container {
    margin-top: 25px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 15px;
}

/* --- Mesaj Stilleri --- */
.aivg-message {
    padding: 10px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.aivg-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.aivg-message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* --- Yükleme Animasyonu (Spinner) --- */
.aivg-loader {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #0073aa; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: aivg-spin 1s linear infinite;
}

@keyframes aivg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Oluşturulan Video --- */
#aivg-result-container video {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 10px;
}

/* --- Mobil Cihazlar için Duyarlılık --- */
@media (max-width: 768px) {
    .aivg-container {
        margin: 20px 10px;
        padding: 20px;
    }
}
