/*
 * Osmanlıca Çevirmen CSS Düzeltmeleri
 * Dosya: fixes.css
 */

/* Metin alanlarındaki taşma ve kaydırma çubuğu düzeltmeleri */
#inputText {
    width: 100%;
    min-height: 200px;
    padding: var(--spacing-md);
    border: none;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-primary);
    font-size: 1rem;
    resize: vertical;
    outline: none;
    transition: background-color var(--transition-speed);
    
    /* Kaydırma çubuğu düzeltmeleri */
    overflow-x: hidden !important; /* Yatay kaydırma çubuğunu gizle */
    word-wrap: break-word; /* Kelimeleri satır sonunda uygun şekilde böl */
    white-space: pre-wrap; /* Satır sonlarını koru ama metni otomatik kaydır */
}

/* Giriş ve çıkış konteynerleri için düzeltme */
.input-container,
.output-container {
    position: relative;
    border-radius: var(--border-radius);
    background-color: var(--bg-light);
    box-shadow: var(--shadow-soft);
    overflow: hidden; /* Taşmaları engelle */
}

/* Osmanlıca çıktı metni için düzeltmeler */
.output-text {
    width: 100%;
    min-height: 200px;
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    line-height: 1.8;
    
    /* Kaydırma çubuğu düzeltmeleri */
    overflow-y: auto; /* Dikey kaydırmaya izin ver */
    overflow-x: hidden !important; /* Yatay kaydırma çubuğunu gizle */
    white-space: pre-wrap;
    word-wrap: break-word; /* Kelimeleri satır sonunda uygun şekilde böl */
    transition: background-color var(--transition-speed);
}

/* Paylaşım bölümü düzeltmeleri */
.share-container {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed), opacity 0.3s ease;
    opacity: 1;
    display: none; /* Başlangıçta gizle */
}

.share-container.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Paylaşım butonları için iyileştirmeler */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.share-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.share-button:active {
    transform: translateY(-1px);
}

/* Temel animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Bildirim stili iyileştirmeleri */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 350px;
}

.notification.visible {
    opacity: 1;
    transform: translateY(0);
}

.notification.error {
    background-color: #e74c3c;
}

.notification.warning {
    background-color: #f39c12;
}

/* Mobil görünüm iyileştirmeleri */
@media (max-width: 767px) {
    .share-button {
        width: 36px;
        height: 36px;
    }
    
    .notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
        max-width: none;
        text-align: center;
    }
}

/* Görüntü modali iyileştirmeleri */
.image-modal-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    object-fit: contain !important;
}