/* ============================================
   post.css - İçerik Detay Sayfası
   ============================================ */

/* ============================================
   Banlı Kullanıcı Stilleri
   ============================================ */

/* Banlı kullanıcı adı - çizili */
.username-banned {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #e74c3c;
    opacity: 0.7;
    color: #e74c3c !important;
}

.username-banned:hover {
    opacity: 0.9;
    text-decoration: line-through;
}

/* Banlı yorumcu */
.comment-user-banned {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #e74c3c;
    opacity: 0.7;
    color: #e74c3c !important;
}

.comment-user-banned i {
    color: #e74c3c;
}

/* Ban rozeti */
.banned-badge {
    display: inline-block;
    margin-left: 5px;
    font-size: 11px;
    color: #e74c3c;
    cursor: help;
}

.banned-badge i {
    font-size: 11px;
}

/* Tooltip için */
.banned-badge:hover::after {
    content: "Bu kullanıcı uzaklaştırılmıştır";
    position: absolute;
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 100;
    margin-left: 5px;
}

/* İçerik Türü Rozeti */
.post-type-badge-container {
    margin-bottom: 12px;
}

.post-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #f0f4ff;
    color: #667eea;
}

/* Tür bazlı renkler */
.post-type-cumle { background: #e3f2fd; color: #1976d2; }
.post-type-siir { background: #fce4ec; color: #c2185b; }
.post-type-makale { background: #e8f5e9; color: #388e3c; }
.post-type-masal { background: #fff3e0; color: #f57c00; }
.post-type-fıkra { background: #fef9e7; color: #d4a017; }
.post-type-anlamli_soz { background: #f3e5f5; color: #7b1fa2; }

/* ============================================
   Ana Container
   ============================================ */

.post-container { 
    max-width: 1200px; 
    margin: 20px auto; 
    padding: 0 15px; 
}

/* Alert */
.alert { 
    padding: 12px 18px; 
    border-radius: 10px; 
    margin-bottom: 20px; 
    font-size: 14px; 
    position: relative; 
}
.alert-error { 
    background: #fff5f5; 
    color: #e74c3c; 
    border: 1px solid #fecaca; 
}
.alert-success { 
    background: #e8f5e9; 
    color: #27ae60; 
    border: 1px solid #c8e6c9; 
}
.alert-close { 
    position: absolute; 
    top: 8px; 
    right: 10px; 
    background: none; 
    border: none; 
    font-size: 18px; 
    cursor: pointer; 
    color: inherit;
}

/* ============================================
   LAYOUT - DÜZELTİLDİ (Sidebar sağda)
   ============================================ */

.post-layout { 
    display: flex; 
    gap: 25px; 
    align-items: flex-start; 
}

.post-main { 
    flex: 1; 
    min-width: 0; 
}

.post-sidebar { 
    width: 320px; 
    flex-shrink: 0; 
}

/* ============================================
   Makale (İçerik)
   ============================================ */

.post-article { 
    background: white; 
    border-radius: 15px; 
    padding: 30px; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.06); 
    margin-bottom: 25px; 
}

.post-premium-badge { 
    display: inline-block; 
    background: linear-gradient(135deg,#ffd700,#ffed4a); 
    color: #333; 
    padding: 5px 15px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 700; 
    margin-bottom: 15px; 
}

.post-title { 
    font-size: 28px; 
    color: #2c3e50; 
    margin: 0 0 20px 0; 
    line-height: 1.3; 
}

.post-meta-card { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px; 
    background: #f8f9fa; 
    border-radius: 10px; 
    margin-bottom: 25px; 
    flex-wrap: wrap; 
    gap: 15px; 
}

.post-author-info { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.post-author-avatar img { 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    object-fit: cover; 
}

.post-author-name { 
    font-weight: 600; 
    color: #333; 
    text-decoration: none; 
    transition: color 0.2s;
}

.post-author-name:hover { 
    color: #667eea; 
}

.post-date-info { 
    font-size: 12px; 
    color: #999; 
    margin-top: 3px; 
}

.post-quick-stats { 
    display: flex; 
    gap: 15px; 
    font-size: 13px; 
    color: #888; 
}

.post-content { 
    font-size: 16px; 
    line-height: 1.8; 
    color: #444; 
    margin-bottom: 25px; 
    padding-bottom: 20px; 
    border-bottom: 1px solid #f0f0f0; 
}

/* Etiketler */
.post-tags-section { 
    margin-bottom: 20px; 
}

.post-tag { 
    background: #f0f4ff; 
    color: #667eea; 
    padding: 4px 10px; 
    border-radius: 15px; 
    font-size: 12px; 
    text-decoration: none; 
    margin: 2px; 
    display: inline-block; 
    transition: all 0.2s;
}

.post-tag:hover { 
    background: #667eea; 
    color: white; 
}

/* Aksiyon Butonları */
.post-actions-bar { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    padding-top: 20px; 
    border-top: 1px solid #f0f0f0; 
}

.action-btn { 
    display: inline-block; 
    padding: 8px 15px; 
    border-radius: 20px; 
    font-size: 13px; 
    text-decoration: none; 
    background: #f0f0f0; 
    color: #555; 
    transition: all 0.3s; 
}

.action-btn:hover { 
    background: #e0e0e0; 
}

.action-btn.active { 
    background: #667eea; 
    color: white; 
}

/* ============================================
   YORUMLAR BÖLÜMÜ
   ============================================ */

.comments-section { 
    background: white; 
    border-radius: 15px; 
    padding: 30px; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.06); 
}

.comments-title { 
    font-size: 22px; 
    margin: 0 0 20px 0; 
    padding-bottom: 15px; 
    border-bottom: 2px solid #f0f0f0; 
}

/* Yorum Formu */
.comment-form-card { 
    background: #f8f9fa; 
    padding: 20px; 
    border-radius: 10px; 
    margin-bottom: 25px; 
}

.comment-form-card textarea { 
    width: 100%; 
    padding: 12px; 
    border: 2px solid #e0e0e0; 
    border-radius: 8px; 
    font-size: 14px; 
    resize: vertical; 
    font-family: inherit; 
    box-sizing: border-box; 
    transition: border 0.2s;
}

.comment-form-card textarea:focus { 
    outline: none; 
    border-color: #667eea; 
}

.btn { 
    padding: 10px 25px; 
    border-radius: 25px; 
    border: none; 
    font-weight: 600; 
    cursor: pointer; 
    margin-top: 10px; 
    transition: all 0.2s;
}

.btn-primary { 
    background: #667eea; 
    color: white; 
}

.btn-primary:hover { 
    background: #5a67d8; 
}

/* Yorum Kartları */
.comment-card { 
    display: flex; 
    gap: 15px; 
    padding: 20px 0; 
    border-bottom: 1px solid #f0f0f0; 
}

.comment-card:last-child { 
    border-bottom: none; 
}

.comment-avatar { 
    flex-shrink: 0; 
}

.comment-avatar img { 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    object-fit: cover; 
}

.comment-body { 
    flex: 1; 
}

.comment-user-link {
    text-decoration: none;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.2s;
}

.comment-user-link:hover {
    color: #667eea;
    text-decoration: underline;
}

.comment-date {
    font-size: 11px;
    color: #aaa;
    margin-left: 8px;
}

.comment-content {
    margin: 8px 0 0 0;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

/* Yorum Silme Butonu */
.comment-delete-btn {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-delete-btn:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* Yorum Yok Mesajı */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 10px;
}

.no-comments i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-comments p {
    margin: 0;
}

/* Toast Bildirimleri */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-content {
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    min-width: 200px;
}

.toast-success .toast-content {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.toast-error .toast-content {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.toast-info .toast-content {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.toast-content i {
    font-size: 18px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet (768px - 992px) */
@media (max-width: 992px) {
    .post-layout { 
        flex-direction: column; 
    }
    
    .post-main { 
        width: 100%; 
    }
    
    .post-sidebar { 
        width: 100%; 
    }
}

/* Mobil (768px altı) */
@media (max-width: 768px) {
    .post-article, 
    .comments-section { 
        padding: 20px 15px; 
    }
    
    .post-title { 
        font-size: 22px; 
    }
    
    .post-meta-card { 
        flex-direction: column; 
        align-items: flex-start; 
    }
    
    .comment-card {
        gap: 10px;
    }
    
    .comment-avatar img {
        width: 35px;
        height: 35px;
    }
    
    .toast-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .toast-content {
        width: calc(100% - 40px);
        justify-content: center;
    }
}

/* Çok küçük ekranlar (480px altı) */
@media (max-width: 480px) {
    .post-container {
        padding: 0 10px;
    }
    
    .post-title { 
        font-size: 20px; 
    }
    
    .comments-section {
        padding: 15px;
    }
    
    .comment-card {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin-bottom: 5px;
    }
    
    .post-actions-bar {
        justify-content: center;
    }
    
    .action-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Hata 404 Sayfası */
.error-404 {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
}

.error-404 i {
    font-size: 64px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-404 h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.error-404 p {
    color: #666;
    margin-bottom: 20px;
}