/* Besmele Odaklı Kelime Analiz Tasarımı */

.word-analysis-card {
    background: #ffffff;
    border: 3px solid #cbd5e1;
    border-radius: 16px;
    padding: 0;
    margin: 1.5rem 0;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
}

.dark .word-analysis-card {
    background: #1e293b;
    border: 3px solid #64748b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Besmele Header - Kelime Vurgulamalı */
.analysis-header {
    background: #f8fafc;
    color: #1e293b;
    padding: 2rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.dark .analysis-header {
    background: #1e293b;
    color: #f1f5f9;
    border-bottom-color: #334155;
}

/* Besmele Tam Metin */
.besmele-full {
    font-family: 'Scheherazade New', serif;
    font-size: 2.5rem;
    margin: 1.5rem 0;
    direction: rtl;
    line-height: 1.3;
}

.besmele-word {
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.besmele-word.active {
    transform: scale(1.1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

/* Kelime Renkleri - Aktif kelime çok belirgin, diğerleri soluk */
.word-isim { 
    color: #9C27B0; 
    font-weight: 900;
    transform: scale(1.15);
    text-shadow: 0 3px 12px rgba(156, 39, 176, 0.6);
    filter: brightness(1.1);
}
.word-allah, .word-rahman, .word-rahim { 
    color: #94a3b8; 
    opacity: 0.4;
}

.dark .word-allah, 
.dark .word-rahman, 
.dark .word-rahim { 
    color: #64748b;
    opacity: 0.3;
}

/* Başlık Hiyerarşisi */
.main-question {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1.5rem 0;
    line-height: 1.2;
}

.dark .main-question {
    color: #f1f5f9;
}

.count-display {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.count-display:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* İsim sayfası için mor tema */
.theme-isim .count-display {
    background: linear-gradient(135deg, #9C27B0, #673AB7);
    color: white;
}

.theme-isim .main-question::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #9C27B0;
    margin: 0.5rem auto;
    border-radius: 2px;
}

/* Allah sayfası için mavi tema */
.theme-allah .count-display {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.theme-allah .main-question::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2196F3;
    margin: 0.5rem auto;
    border-radius: 2px;
}

.theme-allah .word-allah { 
    color: #2196F3 !important; 
    font-weight: 900 !important;
    transform: scale(1.15) !important;
    text-shadow: 0 3px 12px rgba(33, 150, 243, 0.6) !important;
    filter: brightness(1.1) !important;
    opacity: 1 !important;
}

.theme-allah .word-isim, 
.theme-allah .word-rahman, 
.theme-allah .word-rahim { 
    color: #94a3b8 !important; 
    opacity: 0.4 !important;
}

/* Rahman sayfası için yeşil tema */
.theme-rahman .count-display {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
}

.theme-rahman .main-question::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #4CAF50;
    margin: 0.5rem auto;
    border-radius: 2px;
}

.theme-rahman .word-rahman { 
    color: #4CAF50 !important; 
    font-weight: 900 !important;
    transform: scale(1.15) !important;
    text-shadow: 0 3px 12px rgba(76, 175, 80, 0.6) !important;
    filter: brightness(1.1) !important;
    opacity: 1 !important;
}

.theme-rahman .word-isim, 
.theme-rahman .word-allah, 
.theme-rahman .word-rahim { 
    color: #94a3b8 !important; 
    opacity: 0.4 !important;
}

/* Rahim sayfası için pembe tema */
.theme-rahim .count-display {
    background: linear-gradient(135deg, #E91E63, #C2185B);
    color: white;
}

.theme-rahim .main-question::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #E91E63;
    margin: 0.5rem auto;
    border-radius: 2px;
}

.theme-rahim .word-rahim { 
    color: #E91E63 !important; 
    font-weight: 900 !important;
    transform: scale(1.15) !important;
    text-shadow: 0 3px 12px rgba(233, 30, 99, 0.6) !important;
    filter: brightness(1.1) !important;
    opacity: 1 !important;
}

.theme-rahim .word-isim, 
.theme-rahim .word-allah, 
.theme-rahim .word-rahman { 
    color: #94a3b8 !important; 
    opacity: 0.4 !important;
}

/* Rahman tema vurgulama kuralları */
.theme-rahman .word-rahman { 
    color: #4CAF50 !important; 
    font-weight: 900 !important;
    transform: scale(1.15) !important;
    text-shadow: 0 3px 12px rgba(76, 175, 80, 0.6) !important;
    filter: brightness(1.1) !important;
    opacity: 1 !important;
}

.theme-rahman .word-isim, 
.theme-rahman .word-allah, 
.theme-rahman .word-rahim { 
    color: #94a3b8 !important; 
    opacity: 0.4 !important;
}

/* Kaf sayfası için pembe tema */
.theme-kaf .count-display {
    background: linear-gradient(135deg, #E91E63, #C2185B);
    color: white;
}

.theme-kaf .main-question::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #E91E63;
    margin: 0.5rem auto;
    border-radius: 2px;
}

/* Koyu tema renk uyumları */
.dark .theme-allah .word-isim, 
.dark .theme-allah .word-rahman, 
.dark .theme-allah .word-rahim,
.dark .theme-rahman .word-isim, 
.dark .theme-rahman .word-allah, 
.dark .theme-rahman .word-rahim,
.dark .theme-rahim .word-isim, 
.dark .theme-rahim .word-allah, 
.dark .theme-rahim .word-rahman,
.dark .theme-kaf { 
    color: #64748b;
    opacity: 0.5;
}

/* Temel kart tasarımı - sadece görünüm, genişlik yok */
.word-analysis-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.dark .word-analysis-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

/* Breadcrumb çerçevesi */
.breadcrumb-container {
    border: 1px solid #e5e7eb !important;
}

.dark .breadcrumb-container {
    border-color: #374151 !important;
}

/* Sayfa içerik alanı overflow koruması */
main {
    overflow-x: hidden;
}

.analysis-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    grid-column: 2;
}

.analysis-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0.5rem 0 0 0;
    grid-column: 2;
}

.arabic-word {
    font-family: 'Scheherazade New', serif;
    font-size: 4rem;
    margin: 0;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    grid-column: 1;
}

.header-stats {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.quick-stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-stat-number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.quick-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Analiz Bölümü */
.analysis-content {
    padding: 2rem;
    background: white;
}

.dark .analysis-content {
    background: #1e293b;
}

.analysis-text {
    line-height: 1.7;
    color: #374151;
}

.dark .analysis-text {
    color: #d1d5db;
}

.highlight-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1.5rem 0;
}

.dark .highlight-text {
    color: #f9fafb;
}

.detail-text {
    font-size: 1rem;
    color: #6b7280;
    margin: 1rem 0;
}

.dark .detail-text {
    color: #9ca3af;
}

/* Arabic inline renkler - tema bazında */
.arabic-inline {
    font-family: 'Scheherazade New', serif;
    font-size: 1.3em;
    font-weight: bold;
}

.theme-isim .arabic-inline {
    color: #9C27B0;
}

.theme-allah .arabic-inline {
    color: #2196F3;
}

.theme-rahman .arabic-inline {
    color: #4CAF50;
}

.theme-rahim .arabic-inline {
    color: #E91E63;
}

/* Emphasis - tema bazında renkler */
.emphasis {
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

.theme-isim .emphasis {
    background: linear-gradient(120deg, rgba(156, 39, 176, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
    color: #9C27B0;
}

.theme-allah .emphasis {
    background: linear-gradient(120deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.1) 100%);
    color: #2196F3;
}

.theme-rahman .emphasis {
    background: linear-gradient(120deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
    color: #4CAF50;
}

.theme-rahim .emphasis {
    background: linear-gradient(120deg, rgba(233, 30, 99, 0.1) 0%, rgba(233, 30, 99, 0.1) 100%);
    color: #E91E63;
}

/* Koyu tema emphasis */
.dark .theme-isim .emphasis {
    background: linear-gradient(120deg, rgba(156, 39, 176, 0.2) 0%, rgba(156, 39, 176, 0.2) 100%);
    color: #c084fc;
}

.dark .theme-allah .emphasis {
    background: linear-gradient(120deg, rgba(33, 150, 243, 0.2) 0%, rgba(33, 150, 243, 0.2) 100%);
    color: #64b5f6;
}

.dark .theme-rahman .emphasis {
    background: linear-gradient(120deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.2) 100%);
    color: #81c784;
}

.dark .theme-rahim .emphasis {
    background: linear-gradient(120deg, rgba(233, 30, 99, 0.2) 0%, rgba(233, 30, 99, 0.2) 100%);
    color: #f48fb1;
}

.result-number {
    font-size: 8rem;
    font-weight: 900;
    color: #667eea;
    line-height: 1;
    margin: 0;
    text-shadow: 4px 4px 8px rgba(102, 126, 234, 0.3);
    grid-column: 1;
    text-align: center;
}

.dark .result-number {
    color: #a78bfa;
}

.result-content {
    grid-column: 2;
    padding: 2rem;
    text-align: center;
}

.result-label {
    font-size: 1.5rem;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 2rem;
}

.dark .result-label {
    color: #e2e8f0;
}

.result-visual {
    grid-column: 3;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Modern Doğrulama Listesi */
.verification-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.verification-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.verification-item:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateX(5px);
}

.dark .verification-item {
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.2);
}

.verification-icon {
    color: #667eea;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.dark .verification-icon {
    color: #a78bfa;
}

.verification-text {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
}

.dark .verification-text {
    color: #e2e8f0;
}

/* Modern Formül Kartı */
.formula-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.dark .formula-card {
    background: linear-gradient(135deg, #4c51bf, #553c9a);
}

.formula {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.formula-explanation {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Progress Ring */
.progress-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-text {
    position: absolute;
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
}

.dark .progress-text {
    color: #a78bfa;
}

.progress-circle {
    transform: rotate(-90deg);
    animation: progressAnimation 2s ease-in-out;
}

@keyframes progressAnimation {
    from {
        stroke-dashoffset: 314;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Responsive Tassarım */
@media (max-width: 768px) {
    .besmele-full {
        font-size: 1.8rem;
        line-height: 1.5;
    }
    
    .main-question {
        font-size: 1.4rem;
    }
    
    .count-display {
        font-size: 2rem;
    }
    
    .analysis-content {
        padding: 1.5rem;
    }
    
    .highlight-text {
        font-size: 1.1rem;
    }
    
    .arabic-inline {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .besmele-full {
        font-size: 1.5rem;
    }
    
    .besmele-word {
        display: block;
        margin: 0.25rem 0;
    }
    
    .analysis-header {
        padding: 1.5rem 1rem;
    }
    
    .analysis-content {
        padding: 1rem;
    }
}