/* Genel stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    line-height: 1.6;
}

/* Header Stili */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #1a73e8;
    text-decoration: none;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
}

.nav-links a:hover {
    color: #1a73e8;
}

/* Footer Stili */
.main-footer {
    background-color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 50px;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.footer-section h3 {
    color: #333;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #666;
    text-decoration: none;
}

.footer-section a:hover {
    color: #1a73e8;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        margin-top: 15px;
    }
    
    .nav-links a {
        display: inline-block;
        margin: 5px 10px;
    }
}

/* Sağ sütun için stiller */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    user-select: none;
}

.widget-header:hover {
    background: #f0f0f0;
}

.widget-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.widget-toggle {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.widget-toggle i {
    font-size: 14px;
}

.widget-toggle.collapsed {
    transform: rotate(180deg);
}

.widget-content {
    padding: 15px;
    max-height: none;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background: #fff;
}

.widget-content.collapsed {
    padding: 0;
    max-height: 0;
}

/* Tag cloud stilleri */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.tag-cloud .tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f0f2f5;
    border-radius: 15px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tag-cloud .tag:hover {
    background: #e4e6eb;
    transform: translateY(-1px);
}

.tag-cloud .tag .count {
    margin-left: 5px;
    font-size: 11px;
    color: #666;
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 25px;
    text-align: center;
}

/* Kategori bölümü stilleri */
.sections-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

.section-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.section-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section-button i {
    font-size: 14px;
    opacity: 0.8;
}

.section-name {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
}

.post-count {
    background: rgba(255,255,255,0.2);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    min-width: 30px;
    text-align: center;
}

/* Kaydırma çubuğu stilleri */
.sections-list::-webkit-scrollbar {
    width: 6px;
}

.sections-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sections-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.sections-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Hover efekti için ek stil */
.section-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s ease;
}

.section-button:hover::after {
    background: rgba(255,255,255,0.1);
}

/* Widget içeriği daraltıldığında */
.widget-content.collapsed .sections-list {
    max-height: 0;
    padding: 0;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .sidebar-widget {
        margin: 10px;
    }
    
    .widget-content {
        max-height: 300px;
    }
}

/* Trend Yazılar Widget Stilleri */
.trending-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trending-post {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: #333;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.trending-post:hover {
    background: #f8f9fa;
    transform: translateX(3px);
}

.trending-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trending-content h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.trending-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.trending-meta i {
    font-size: 11px;
}

.trending-meta .likes i {
    color: #e74c3c;
}

.trending-meta .views i {
    color: #3498db;
}

.trending-meta .date i {
    color: #7f8c8d;
}

/* Widget içeriği daraltıldığında */
.widget-content.collapsed .trending-posts {
    max-height: 0;
    padding: 0;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .trending-image {
        width: 60px;
        height: 60px;
    }
    
    .trending-content h4 {
        font-size: 13px;
    }
    
    .trending-meta {
        font-size: 11px;
    }
} 