/**
 * El-Kavaidu'l-Müşeccia - Özel Stiller
 */

/* Genel Animasyonlar */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
}

/* Tema geçişleri */
body {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Arapça Font Ayarları */
.font-arabic {
    font-family: 'Amiri', serif;
    line-height: 2;
}

/* Sekme Animasyonları */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* İlerleme Çubuğu */
.progress-bar {
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease-in-out;
}

/* Kart Stilleri */
.book-card {
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Audio Player Özelleştirmesi */
audio {
    width: 100%;
    height: 50px;
    border-radius: 25px;
}

audio::-webkit-media-controls-panel {
    background: linear-gradient(to right, #10b981, #14b8a6);
}

/* Metin İçerik Stilleri */
.text-content .arabic-text {
    font-size: 1.75rem;
    line-height: 2.5;
    text-align: right;
}

.text-content .turkish-text {
    font-size: 1.125rem;
    line-height: 1.75;
}

/* Responsive Düzenlemeler */
@media (max-width: 640px) {
    .text-content .arabic-text {
        font-size: 1.5rem;
        line-height: 2;
    }
    
    .text-content .turkish-text {
        font-size: 1rem;
    }
}

/* İnfografik Zoom */
.infographic-img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.infographic-img:hover {
    transform: scale(1.02);
}

/* Gradient Arka Planlar */
.gradient-primary {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* Mobil Menü Animasyonu */
.mobile-menu {
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(16, 185, 129, 0.2);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: #1e293b;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Pulse Animation for New Indicators */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Focus States */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .font-arabic {
        color: black !important;
    }
}
