/* ============================================
   index.css - Ana Sayfa Stilleri
   ============================================ */

.index-container {
}

/* Hero Alanı */
.index-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    margin: 20px 0 30px 0;
}

.index-hero-title {
    font-size: 32px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.index-hero-text {
    font-size: 16px;
    margin: 0 0 25px 0;
    opacity: 0.9;
}

.index-hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-index {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-index-primary {
    background: white;
    color: #667eea;
}

.btn-index-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-index-outline {
    border: 2px solid white;
    color: white;
}

.btn-index-outline:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
}

/* Ana Layout */
.index-layout {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
}

.index-main {
    flex: 1;
    min-width: 0;
    order: 1; /* Masaüstünde solda */
}

.index-sidebar {
    width: 320px;
    flex-shrink: 0;
    order: 2; /* Masaüstünde sağda */
}

/* Tab Menü */
.index-tabs {
    display: flex;
    gap: 5px;
    background: white;
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.index-tab {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    text-decoration: none;
    color: #666;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.index-tab:hover {
    background: #f0f0f0;
    color: #333;
}

.index-tab-active {
    background: #667eea;
    color: black !important;
}

/* Boş Durum */
.index-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    color: #888;
}

.index-empty a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

/* İçerik Kartı */
.index-post {
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.index-post:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.index-premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.index-post-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    padding-right: 90px;
}

.index-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.index-post-title a:hover {
    color: #667eea;
}

.index-post-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.index-post-meta a {
    color: #667eea;
    text-decoration: none;
}

.index-post-meta a:hover {
    text-decoration: underline;
}

.index-post-content {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.index-post-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.index-tag {
    background: #f0f4ff;
    color: #667eea;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.index-tag:hover {
    background: #667eea;
    color: white;
}

.index-post-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #888;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.index-read-more {
    margin-left: auto;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}

.index-read-more:hover {
    color: #764ba2;
    transform: translateX(3px);
    display: inline-block;
}

/* Sayfalama */
.index-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.index-page-btn {
    padding: 8px 18px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.index-page-btn:hover {
    background: #f0f0f0;
}

.index-page-num {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.index-page-num:hover {
    background: #f0f0f0;
}

.index-page-current {
    background: #667eea;
    color: white !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .index-layout {
        flex-direction: column;
    }
    
    /* MOBİLDE: İçerik üstte, Sidebar altta */
    .index-main {
        order: 1; /* Ana içerik üstte */
        width: 100%;
    }
    
    .index-sidebar {
        order: 2; /* Sidebar altta */
        width: 100%;
    }
}

@media (max-width: 768px) {
    .index-hero {
        padding: 30px 15px;
        margin: 10px 0 20px 0;
    }
    
    .index-hero-title {
        font-size: 24px;
    }
    
    .index-hero-text {
        font-size: 14px;
    }
    
    .index-tab {
        font-size: 12px;
        padding: 8px 4px;
    }
    
    .index-post {
        padding: 15px;
    }
    
    .index-post-title {
        font-size: 17px;
        padding-right: 0;
    }
    
    .index-premium-badge {
        position: static;
        display: inline-block;
        margin-bottom: 8px;
    }
    
    .index-post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .index-post-stats {
        gap: 10px;
    }
    
    .index-read-more {
        margin-left: 0;
        width: 100%;
        text-align: center;
        padding: 8px;
        background: #f0f4ff;
        border-radius: 8px;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .index-hero {
        padding: 20px 10px;
    }
    
    .index-hero-title {
        font-size: 20px;
    }
    
    .btn-index {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .index-tabs {
        flex-wrap: wrap;
    }
    
    .index-tab {
        flex: 1 1 45%;
    }
    
    .index-post-title {
        font-size: 16px;
    }
    
    .index-pagination {
        gap: 4px;
    }
    
    .index-page-btn,
    .index-page-num {
        padding: 6px 12px;
        font-size: 13px;
    }
}