/* =========================================
   KELIME DETAY SAYFASI
   ========================================= */

/* Arama Hint ve Sonuç Kartı */
.arama-hint {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: #94a3b8;
}

.arama-sonuc-card {
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);

}

.arama-sonuc-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4338ca;
    margin-bottom: 10px;
}

.arama-sonuc-info i {
    font-size: 14px;
}

.arama-temizle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #dc2626;
    text-decoration: none;
    padding: 6px 12px;
    background: #fff;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.arama-temizle:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* İstatistik Kartı - 3 öğe için */
.stat-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.stat-label {
    font-size: 11px;
    color: #64748b;
}

/* Kelime Başlık Kartı - Mobil/Desktop Görünürlük */
.kelime-baslik-mobil {
    display: none;
    margin-bottom: 20px;
}

.kelime-baslik-desktop {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/* Sidebar Sticky */
.kelime-sidebar-kolon {
    position: relative;
    overflow: visible;
}

.kelime-sidebar-sticky {
    overflow: visible;
}

.kelime-sayfa-row {
    overflow: visible;
}

/* Scrollbar stili */
.kelime-sidebar-sticky::-webkit-scrollbar {
    width: 4px;
}

.kelime-sidebar-sticky::-webkit-scrollbar-track {
    background: transparent;
}

.kelime-sidebar-sticky::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.kelime-sidebar-sticky::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Tablet ve Mobil (991px altı) */
@media (max-width: 991px) {
    .kelime-baslik-mobil {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .kelime-baslik-desktop,
    .kelime-baslik-wrapper {
        display: none;
    }

    .kelime-sidebar-sticky {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

/* =========================================
   ANLAM AYIRICI
   ========================================= */

/* Anlam Ayırıcı */
.anlam-ayirici {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
    padding: 0 20px;
}

.ayirici-cizgi {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 20%, #e2e8f0 80%, transparent 100%);
}

.ayirici-numara {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .anlam-ayirici {
        margin: 24px 0;
        padding: 0 10px;
    }

    .ayirici-numara {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Anlam Body - Dikey düzen */
.anlam-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Anlam Sol Alan - Resim ve Onay */
.anlam-sol {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 180px;
}

/* Büyük ekranlarda yan yana */
@media (min-width: 768px) {
    .anlam-body {
        flex-direction: row;
        gap: 20px;
    }

    .anlam-sol {
        flex-shrink: 0;
    }
}

/* Anlam Resim */
.anlam-resim {
    width: 100%;
}

.anlam-resim img {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
}

/* Anlam Onay Container */
.anlam-onay-container {
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    width: 100%;
    max-width: 180px;
}

.anlam-onay-bar {
    height: 6px;
    background: #fee2e2;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.anlam-onay-bar .onay-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.anlam-onay-buttons {
    display: flex;
    gap: 8px;
}

.anlam-onay-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.anlam-onay-btn.onay {
    background: #dcfce7;
    color: #16a34a;
}

.anlam-onay-btn.onay:hover:not(:disabled) {
    background: #22c55e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.anlam-onay-btn.red {
    background: #fee2e2;
    color: #dc2626;
}

.anlam-onay-btn.red:hover:not(:disabled) {
    background: #ef4444;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.anlam-onay-btn.voted {
    opacity: 0.6;
    cursor: not-allowed;
}

.anlam-onay-btn i {
    font-size: 14px;
}

.anlam-onay-btn .onay-oran,
.anlam-onay-btn .red-oran {
    font-size: 12px;
    font-weight: 600;
}

.anlam-onay-btn.loading {
    pointer-events: none;
}

.anlam-onay-btn.loading i {
    animation: anlam-spin 0.8s linear infinite;
}

/* Anlam Onay Tooltip */
.anlam-onay-btn {
    position: relative;
}

.anlam-onay-btn::before {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #1e293b;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
}

.anlam-onay-btn::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(2px);
    border: 5px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
}

.anlam-onay-btn:hover::before,
.anlam-onay-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

.anlam-onay-btn:hover::before {
    transform: translateX(-50%) translateY(-8px);
}

.anlam-onay-btn:hover::after {
    transform: translateX(-50%) translateY(-2px);
}

@keyframes anlam-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 767px) {
    .anlam-sol {
        max-width: 100%;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .anlam-resim {
        width: auto;
        flex-shrink: 0;
        min-width: 50%;
        text-align: center;
    }

    .anlam-resim img {
        width: 100px;
        max-width: 100px;
    }

    .anlam-onay-container {
        flex: 0 0 auto;
        width: 100px;
        max-width: 100px;
        padding: 8px;
        margin: auto;
    }

    .anlam-onay-bar {
        height: 4px;
        margin-bottom: 8px;
    }

    .anlam-onay-buttons {
        flex-direction: column;
        gap: 6px;
    }

    .anlam-onay-btn {
        padding: 6px 8px;
        font-size: 11px;
        gap: 4px;
    }

    .anlam-onay-btn i {
        font-size: 12px;
    }

    .anlam-onay-btn .onay-oran,
    .anlam-onay-btn .red-oran {
        font-size: 10px;
    }
}

/* Çok küçük ekranlar */
@media (max-width: 400px) {
    .anlam-sol {
        flex-direction: column;
        align-items: center;
    }

    .anlam-resim img {
        width: 120px;
        max-width: 120px;
    }

    .anlam-onay-container {
        width: 120px;
        max-width: 120px;
    }

    .anlam-onay-buttons {
        flex-direction: row;
    }
}

/* =========================================
   SÖZLÜK BULUNAMADI SAYFASI
   ========================================= */

.kelime-bulunamadi-container {
    background: #fff;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.kelime-bulunamadi-container .bulunamadi-icon {
    font-size: 80px;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.kelime-bulunamadi-container h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.kelime-bulunamadi-container .aranan-kelime {
    font-size: 20px;
    color: #3b82f6;
    margin-bottom: 8px;
}

.kelime-bulunamadi-container .aranan-kelime strong {
    font-weight: 700;
}

.kelime-bulunamadi-container .aciklama {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 32px;
}

.bulunamadi-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-sozluk-ana {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-sozluk-ana:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
    color: #fff;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-kelime-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-kelime-item {
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-kelime-item:hover {
    background: #e0f2fe;
    color: #0369a1;
}

@media (max-width: 768px) {
    .kelime-bulunamadi-container {
        padding: 40px 24px;
    }

    .kelime-bulunamadi-container .bulunamadi-icon {
        font-size: 60px;
    }

    .kelime-bulunamadi-container h2 {
        font-size: 20px;
    }
}
