/* Özgün Sidebar Tasarımı */
/* Modern, hoş ve etkileşimli sidebar bileşenleri */

/* Sidebar Container */
.sidebar {
    position: sticky;
    top: 20px;
    z-index: 10;
}

/* Widget Genel Stilleri */
.widget {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px 20px 0 0;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Widget Başlıkları */
.widget__title {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    position: relative;
    padding-bottom: 15px;
}

.widget__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.widget__title i {
    margin-right: 12px;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Kategoriler Widget */
.widget__categories {
    padding: 0;
    margin: 0;
    list-style: none;
}

.category-item {
    margin-bottom: 15px;
    position: relative;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px solid transparent;
    border-radius: 15px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.category-link:hover::before {
    left: 100%;
}

.category-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.category-name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.category-desc {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.3;
    transition: opacity 0.3s ease;
}

.category-count {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    min-width: 32px;
    text-align: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.category-link:hover .category-count {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Popüler Yazılar Widget */
.popular-posts {
    padding: 0;
    margin: 0;
    list-style: none;
}

.popular-post {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.popular-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 12px;
    padding: 20px 15px;
    margin: 0 -15px;
}

.popular-post__content {
    position: relative;
}

.popular-post__title {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
}

.popular-post__title a {
    color: #2d3748;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.popular-post__title a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.popular-post__title a:hover::before {
    width: 100%;
}

.popular-post__title a:hover {
    color: #667eea;
    text-decoration: none;
}

.popular-post__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #718096;
    flex-wrap: wrap;
    gap: 8px;
}

.popular-post__meta .views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.popular-post__meta .views::before {
    content: '👁️';
    font-size: 0.9rem;
}

.popular-post__meta .date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.popular-post__meta .date::before {
    content: '📅';
    font-size: 0.9rem;
}

/* Etiketler Widget */
.widget__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tag-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tag-link:nth-child(odd) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.tag-link:nth-child(3n) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.tag-link:nth-child(4n) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 4px 15px rgba(67, 233, 123, 0.3);
}

.tag-link:nth-child(5n) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.3);
}

.tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    transition: all 0.3s ease;
}

.tag-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s;
}

.tag-link:hover::before {
    left: 100%;
}

.tag-link:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.tag-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.tag-link:hover .tag-count {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Özel etiket renkleri */
.tag-link[data-tag="teknoloji"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tag-link[data-tag="php"] {
    background: linear-gradient(135deg, #777bb4 0%, #5a4fcf 100%);
    color: white;
}

.tag-link[data-tag="javascript"] {
    background: linear-gradient(135deg, #f7df1e 0%, #f0db4f 100%);
    color: #333;
}

.tag-link[data-tag="web-tasarim"] {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.tag-link[data-tag="seyahat"] {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
}

.tag-link[data-tag="yasam"] {
    background: linear-gradient(135deg, #45b7d1 0%, #96c93d 100%);
    color: white;
}

.tag-link[data-tag="moda"] {
    background: linear-gradient(135deg, #9f7aea 0%, #667eea 100%);
    color: white;
}

.tag-link[data-tag="yemek"] {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
}

.tag-link[data-tag="spor"] {
    background: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
    color: white;
}

.tag-link[data-tag="sanat"] {
    background: linear-gradient(135deg, #ed64a6 0%, #d53f8c 100%);
    color: white;
}

.tag-link[data-tag="bilim"] {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.tag-link[data-tag="egitim"] {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.tag-link[data-tag="saglik"] {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

/* Özel Kategori Renkleri */
.category-link[data-category="teknoloji"] {
    border-left: 4px solid #667eea;
}

.category-link[data-category="seyahat"] {
    border-left: 4px solid #48bb78;
}

.category-link[data-category="yaşam"] {
    border-left: 4px solid #ed8936;
}

.category-link[data-category="yemek"] {
    border-left: 4px solid #e53e3e;
}

.category-link[data-category="moda"] {
    border-left: 4px solid #9f7aea;
}

.category-link[data-category="spor"] {
    border-left: 4px solid #38b2ac;
}

/* Widget İkonları */
.widget[data-widget="categories"] .widget__title i::before {
    content: '📁';
    font-size: 1.2rem;
}

.widget[data-widget="popular"] .widget__title i::before {
    content: '🔥';
    font-size: 1.2rem;
}

.widget[data-widget="tags"] .widget__title i::before {
    content: '🏷️';
    font-size: 1.2rem;
}

/* Animasyonlar */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes tagBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-8px) scale(1.05);
    }
    60% {
        transform: translateY(-4px) scale(1.02);
    }
}

@keyframes tagGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }
}

@keyframes tagCountPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}



 

.category-link:hover .category-count {
    animation: pulse 0.6s ease-in-out;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .widget {
        padding: 25px 20px;
        margin-bottom: 25px;
    }
    
    .category-link {
        padding: 15px 18px;
    }
    
    .popular-post:hover {
        margin: 0 -10px;
        padding: 20px 10px;
    }
    
    .tag-link {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .widget__title {
        font-size: 1.2rem;
    }
    
    .category-link {
        padding: 12px 15px;
    }
    
    .category-name {
        font-size: 0.9rem;
    }
    
    .category-desc {
        font-size: 0.8rem;
    }
    
    .popular-post__title {
        font-size: 0.9rem;
    }
    
    .popular-post__meta {
        font-size: 0.75rem;
    }
}

/* Dark Mode Desteği */
@media (prefers-color-scheme: dark) {
    .widget {
        background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .widget__title {
        color: #e2e8f0;
    }
    
    .category-link {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        color: #e2e8f0;
    }
    
    .popular-post__title a {
        color: #e2e8f0;
    }
    
    .tag-link {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        color: #e2e8f0;
    }
}

/* Özel Efektler */
.widget::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.widget:hover::after {
    opacity: 1;
}

/* Scroll Animasyonu */
 
