/* Sidebar Standart Stiller */

/* Genel Sidebar Card */
.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px 16px 14px 0px;
    /* background: #f8fafc; */
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    color: #3b5d8a;
}
.sidebar-card .sidebar-card{
    margin-bottom: 0px;
    padding: 20px 0px;
}

.sidebar-card-header i {
    color: #3d618d;
    font-size: 15px;
}

.sidebar-card-body {
    padding: 16px 0px 0px 0px;
}

/* Arama Input */
.sidebar-search-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 4px 4px 4px 14px;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s ease;
}

.sidebar-search-input:focus-within {
    border-color: #3d618d;
    box-shadow: 0 0 0 3px rgba(61, 97, 141, 0.1);
}

.sidebar-search-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #1e293b;
    outline: none;
    padding: 8px 0;
}

.sidebar-search-input input::placeholder {
    color: #94a3b8;
}

.sidebar-search-input button {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #3d618d 0%, #2d4a6d 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-search-input button:hover {
    transform: scale(1.05);
}

 /* Arama Sonucu Bilgisi */
.sidebar-arama-sonuc {
    margin-top: 10px;
    padding: 20px;
    background: #fff;
    /* border: 1px solid #fbbf24; */
    border-radius: 15px;
    margin-bottom: 10px;
}

.sidebar-arama-sonuc .arama-sonuc-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 15px;
    color: #92400e;
}

.sidebar-arama-sonuc .arama-sonuc-info i {
    color: #f59e0b;
}

.sidebar-arama-sonuc .arama-temizle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgb(171 171 171 / 60%);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-arama-sonuc .arama-temizle:hover {
    background: #000;
    color: #fff;
}

/* Etiket ve Kelime Listesi */
.sidebar-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.sidebar-tag:hover {
    background: #e2e8f0;
    color: #1e293b;
    text-decoration: none;
}

.sidebar-tag i {
    font-size: 10px;
    color: #94a3b8;
}

/* Etiket - Mor tonları */
.sidebar-tag:not(.keyword) {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    color: #6d28d9;
    border-color: #ddd6fe;
}

.sidebar-tag:not(.keyword):hover {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #5b21b6;
}

.sidebar-tag:not(.keyword) i {
    color: #8b5cf6;
}

/* Kelime (keyword) - Mavi tonları */
.sidebar-tag.keyword {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.sidebar-tag.keyword:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.sidebar-tag.keyword i {
    color: #3b82f6;
}

/* Seviye Butonları */
.sidebar-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.sidebar-level-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 50px;
}

.sidebar-level-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #fff;
}

/* Kategori Grid */
.sidebar-kategori-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Kategori Liste (Basit) */
.kategori-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kategori-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.kategori-item:hover {
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
    border-color: #e2e8f0;
}

.kategori-item i {
    font-size: 10px;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.kategori-item:hover i {
    color: #3d618d;
}

.sidebar-kategori-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 12px 8px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.sidebar-kategori-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    text-decoration: none;
}

.sidebar-kategori-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    margin-bottom: 8px;
}

.sidebar-kategori-name {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Challenge Mini Widget */
.sidebar-card-challenge {
    max-height: 200px;
    overflow: hidden;
}

.sidebar-card-challenge .sidebar-card-body {
    padding: 12px;
}

.challenge-mini-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: #94a3b8;
    font-size: 13px;
}

/* Test Widget */
.sidebar-card-test {
    border-color: #ddd6fe;
}

.sidebar-card-test .sidebar-card-header {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-bottom-color: #ddd6fe;
    color: #5b21b6;
}

.sidebar-card-test .sidebar-card-header i {
    color: #8b5cf6;
}

.test-info {
    margin-bottom: 12px;
}

.test-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 10px;
    line-height: 1.5;
}

.test-stats {
    display: flex;
    gap: 16px;
}

.test-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
    font-weight: 500;
}

.test-stat i {
    color: #8b5cf6;
    font-size: 13px;
}

.sidebar-test-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-test-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
    text-decoration: none;
    color: #fff;
}

.challenge-mini-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 10px;
    margin-bottom: 12px;
    max-height: 80px;
    overflow: hidden;
}

.challenge-mini-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.challenge-mini-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.challenge-mini-title {
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.challenge-mini-desc {
    font-size: 11px;
    color: #a16207;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-challenge-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #3d618d 0%, #2d4a6d 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-challenge-btn:hover {
    box-shadow: 0 4px 12px rgba(61, 97, 141, 0.3);
    text-decoration: none;
    color: #fff;
}

.sosyal-actions-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    overflow: visible;
}

.sosyal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.sosyal-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 15px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
    max-width: 80px;
}

.sosyal-action-btn:hover {
    background: #e5e7eb;
}

.sosyal-action-btn i {
    font-size: 18px;
    color: #6b7280;
}

.sosyal-action-btn span {
    font-size: 11px;
    color: #6b7280;
}

.sosyal-action-btn.share:hover {
    background: #dbeafe;
    border-color: #3b82f6;
}

.sosyal-action-btn.share:hover i {
    color: #3b82f6;
}

.sosyal-action-btn.like:hover,
.sosyal-action-btn.like.liked {
    background: #fee2e2;
    border-color: #ef4444;
}

.sosyal-action-btn.like:hover i,
.sosyal-action-btn.like.liked i {
    color: #ef4444;
}

.sosyal-action-btn.like.liked i {
    font-weight: 900;
}

.sosyal-action-btn.fav:hover,
.sosyal-action-btn.fav.faved {
    background: #fef3c7;
    border-color: #f59e0b;
}

.sosyal-action-btn.fav:hover i,
.sosyal-action-btn.fav.faved i {
    color: #f59e0b;
}

.sosyal-action-btn.fav.faved i {
    font-weight: 900;
}

/* Sosyal Arama Formu */
.sosyal-search-form {
    margin-bottom: 12px;
}

.sosyal-actions-card .sidebar-search-input {
    margin-bottom: 0;
}

/* Sidebar Puan Sistemi - Yeni Tasarım */
.sidebar-puan-wrapper {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    overflow: visible;
}

.sidebar-puan {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    overflow: visible;
}

.sidebar-puan-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding: 10px 6px;
    background: #f8fafc;
    border-radius: 10px;
}

.sidebar-puan-item:hover {
    transform: scale(1.05);
    background: #f1f5f9;
}

.sidebar-puan-item:hover .sidebar-puan-tooltip {
    display: block;
    opacity: 1;
    visibility: visible;
}

.sidebar-puan-icon {
    font-size: 22px;
    margin-bottom: 5px;
    color: #64748b;
    transition: all 0.2s ease;
}

.sidebar-puan-item:hover .sidebar-puan-icon {
    color: #667eea;
}

.sidebar-puan-bar {
    width: 8px;
    height: 40px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.sidebar-puan-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, #667eea, #764ba2);
    border-radius: 4px;
    transition: height 0.3s ease;
}

.sidebar-puan-count {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    margin-top: 4px;
}

/* Puan Tooltip */
.sidebar-puan-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 9999;
    margin-bottom: 5px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}


/* Nav Tab Content (Seviye/Kategori) */
.nav-tab-content {
    display: none;
}

.nav-tab-content.active {
    display: block;
}

/* Sidebar Tab Sistemi */
.sidebar-tabs-header {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
}

.sidebar-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.sidebar-tab:hover {
    color: #ff0000;
}

.sidebar-tab.active {
    color: #3d618d;
    border-bottom-color: #3d618d;
    font-weight: 600;
}

.sidebar-tab i {
    font-size: 12px;
}

.sidebar-tab-content {
    display: none;
}

.sidebar-tab-content.active {
    display: block;
}

/* Benzer İçerikler Card */
.benzer-icerikler-card {
    padding: 0;
    overflow: hidden;
}

.benzer-icerikler-card .sidebar-tabs-header {
    padding: 0;
    background: #f8fafc;
}

.benzer-icerikler-card .sidebar-tab {
    padding: 14px 10px;
    font-size: 12px;
}

.benzer-tab-content {
    display: none;
}

.benzer-tab-content.active {
    display: block;
}

/* Benzer İçerik Liste */
.benzer-liste {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benzer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.benzer-item:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    text-decoration: none;
}

.benzer-resim {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
}

.benzer-resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benzer-info {
    flex: 1;
    min-width: 0;
}

.benzer-baslik {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar-kategori-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .sidebar-card {
        margin-bottom: 12px;
    }

    .sidebar-card-header {
        padding: 12px 14px;
        font-size: 13px;
    }

    .sidebar-card-body {
        padding: 14px 0px 0px 0px;
    }

    .sidebar-tag {
        padding: 5px 10px;
        font-size: 11px;
    }

    .sidebar-kategori-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-tab {
        padding: 10px 12px;
        font-size: 12px;
    }

    .sidebar-tab span {
        display: none;
    }
}

/* ================================================
   SIDEBAR LİSTE SAYFALARI STİLLERİ
   ================================================ */

/* Liste Sidebar Card */
.sidebar-liste-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: visible;
}

.sidebar-liste-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px 16px 14px 0px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #3b5d8a;
}

.sidebar-liste-header i {
    color: #3d618d;
    font-size: 14px;
}

.sidebar-liste-body {
    padding: 14px 0px 0px 0px;
    overflow: visible;
}

/* Liste Tab Sistemi */
.sidebar-liste-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    overflow: visible;
}

.sidebar-liste-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    position: relative;
    overflow: visible;
}

.sidebar-liste-tab:hover {
    color: #3d618d;
}

.sidebar-liste-tab.active {
    color: #3d618d;
    background: #fff;
    border-bottom-color: #3d618d;
}

.sidebar-liste-tab i {
    font-size: 12px;
}

/* Tab İçerikleri */
.sidebar-tab-content {
    display: none;
}

.sidebar-tab-content.active {
    display: block;
}

/* Level Butonları */
.level-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    overflow: visible;
}

.level-btn {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    overflow: visible;
}

.level-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

/* Kategori Listesi */
.kategori-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kategori-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.kategori-item:hover i {
    color: #3d618d;
}

.kategori-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

/* Sidebar Geri Dön Butonu */
.sidebar-liste-card.sidebar-back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #ffffff;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar-liste-card.sidebar-back-btn:hover {
    background: #f1f5f9;
    color: #212529;
    text-decoration: none;
}

.sidebar-liste-card.sidebar-back-btn i {
    font-size: 12px;
    color: #94a3b8;
}

/* Challenge Card */
.sidebar-liste-card.challenge-card {
    background: #fff;
    padding: 16px;
}

.challenge-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.challenge-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.challenge-icon i {
    font-size: 18px;
    color: #fff;
}

.challenge-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 4px 0;
}

.challenge-info p {
    font-size: 12px;
    color: #a16207;
    margin: 0;
    line-height: 1.4;
}

.challenge-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.challenge-btn:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    color: #fff;
    background:linear-gradient(135deg, #76a7d6 0%, #4a81b5 100%)
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar-liste-card {
        margin-bottom: 12px;
    }

    .sidebar-liste-tab span {
        display: none;
    }

    .sidebar-liste-tab {
        padding: 10px;
    }
}
