/* TEKİL KONU SAYFASI (single.php) */
.topic-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px;
    flex-wrap: wrap; /* Mobil için */
    gap: 15px;
}

.moderation-tools {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Modern Moderation Buttons */
.mod-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid transparent;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    outline: none;
    min-width: 85px;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mod-btn: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.6s;
}

.mod-btn:hover:before {
    left: 100%;
}

.mod-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mod-btn:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

/* Sticky Button */
.mod-btn-sticky {
    border-color: #fbbf24;
    color: #92400e;
}

.mod-btn-sticky:hover {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    border-color: #f59e0b;
    color: #78350f;
}

.mod-btn-sticky i.active {
    color: #f59e0b;
    animation: pinBounce 0.6s ease-in-out;
}

/* Lock Button */
.mod-btn-lock {
    border-color: #ef4444;
    color: #b91c1c;
}

.mod-btn-lock:hover {
    background: linear-gradient(135deg, #fee2e2, #f87171);
    border-color: #dc2626;
    color: #7f1d1d;
}

.mod-btn-lock i.active {
    color: #dc2626;
    animation: lockShake 0.5s ease-in-out;
}

/* Icon and Text */
.mod-btn i {
    font-size: 12px;
    transition: all 0.25s ease;
    width: 12px;
    text-align: center;
}

.mod-text {
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

/* Active States */
.mod-btn i.active {
    transform: scale(1.1);
    filter: drop-shadow(0 0 3px currentColor);
}

/* Animations */
@keyframes pinBounce {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-15deg) scale(1.1); }
    75% { transform: rotate(15deg) scale(1.1); }
}

@keyframes lockShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px) rotate(-2deg); }
    75% { transform: translateX(2px) rotate(2deg); }
}

/* Loading State (for AJAX) */
.mod-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.mod-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile Responsive Moderation Buttons */
@media (max-width: 768px) {
    .topic-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .moderation-tools {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .mod-btn {
        min-width: 75px;
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .mod-btn i {
        font-size: 11px;
    }
    
    .mod-text {
        display: none; /* Sadece iconları göster mobilde */
    }
    
    /* Tooltip mobilde */
    .mod-btn:hover::after {
        content: attr(title);
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 11px;
        white-space: nowrap;
        z-index: 10;
    }
}

.original-post {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
}
/* SADE MODERN POSTBIT */
.author-box.modern-postbit {
    flex: 0 0 200px;
    padding: 20px;
    background: #f8fafc;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.author-avatar .avatar {
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.author-bio {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.4;
    margin: 5px 0;
}

.author-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.author-meta span,
.author-meta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.author-meta a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-meta a:hover {
    color: var(--primary-color-dark);
}

.author-meta i {
    width: 14px;
    font-size: 12px;
    opacity: 0.7;
}

.author-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.action-link {
    flex: 1;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.action-link:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.action-link i {
    font-size: 10px;
    width: 12px;
}

/* Eski author-box stilleri (yedek) */
.author-box:not(.modern-postbit) {
    flex: 0 0 180px;
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    border-right: 1px solid var(--border-color);
}
.author-box:not(.modern-postbit) .avatar { border-radius: 50%; margin-bottom: 10px; }
.author-box:not(.modern-postbit) strong { display: block; font-size: 16px; word-wrap: break-word; }
.author-box:not(.modern-postbit) small { color: var(--text-light); }
.card-content-wrapper { 
    padding: 25px; 
    flex-grow: 1; 
}

.card-header { 
    font-size: 13px; 
    color: var(--text-light); 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 15px; 
    margin-bottom: 15px; 
}

.card-body {
    line-height: 1.7;
    word-wrap: break-word;
}

.card-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

