/* ============================================
   tag.css - Etiket Sayfası
   ============================================ */

.tag-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.tag-main { flex: 1; min-width: 0; order: 1; }
.tag-sidebar { width: 340px; flex-shrink: 0; order: 2; }

/* Hero */
.tag-hero {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.tag-hero-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 35px;
    font-weight: 700;
}

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

.tag-hero-count {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* İçerik Kartı */
.tag-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tag-post-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.tag-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tag-post-header {
    margin-bottom: 15px;
}

.post-author-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name-mini {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.author-name-mini:hover {
    color: #667eea;
}

.post-date-mini {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.tag-post-title {
    margin: 0 0 10px 0;
    font-size: 20px;
}

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

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

.tag-post-preview {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.tag-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.tag-post-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #888;
}

.tag-post-stats i {
    margin-right: 3px;
}

.read-more-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.read-more-link:hover {
    color: #764ba2;
    gap: 10px;
}

/* Boş */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.empty-state i {
    font-size: 60px;
    color: #ddd;
    display: block;
    margin-bottom: 15px;
}

.empty-state h3 {
    color: #333;
    margin: 0 0 10px 0;
}

.empty-state p {
    color: #999;
    margin: 0 0 20px 0;
}

.btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}

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

.page-btn {
    padding: 8px 18px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

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

.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;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.page-num:hover { background: #f0f0f0; }
.page-num.current { background: #667eea; color: white; }

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 i {
    font-size: 80px;
    color: #ddd;
    display: block;
    margin-bottom: 20px;
}

.error-404 h2 {
    color: #333;
    margin: 0 0 10px 0;
}

.error-404 p {
    color: #999;
    margin: 0 0 25px 0;
}

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

@media (max-width: 992px) {
    .tag-layout {
        flex-direction: column;
    }
    
    .tag-main { order: 1; width: 100%; }
    .tag-sidebar { order: 2; width: 100%; }
}

@media (max-width: 768px) {
    .tag-hero {
        padding: 30px 15px;
    }
    
    .tag-hero-title {
        font-size: 28px;
    }
    
    .tag-hero-icon {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    
    .tag-post-card {
        padding: 18px 15px;
    }
    
    .tag-post-title {
        font-size: 18px;
    }
    
    .tag-post-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .tag-post-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .read-more-link {
        width: 100%;
        justify-content: center;
        padding: 8px;
        background: #f0f4ff;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .tag-hero-title {
        font-size: 24px;
    }
    
    .tag-post-title {
        font-size: 16px;
    }
}