/* Post Detail Page Styles */

.post-detail-main {
    padding-top: 80px;
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb-section {
    padding: 24px 0;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-purple);
}

.breadcrumb .separator {
    color: var(--neutral-400);
}

.breadcrumb .current {
    color: var(--neutral-300);
}

/* Post Detail Layout */
.post-content-section {
    padding: 60px 0;
}

.post-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Post Main Content */
.post-main {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
}

/* Post Header Detail */
.post-header-detail {
    margin-bottom: 32px;
}

.post-title-detail {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 16px 0;
    color: var(--neutral-100);
}

.post-meta-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.author-profile-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}
.author-profile-link:hover .author-name {
    color: var(--primary-500);
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 18px;
    text-transform: uppercase;
    line-height: 1;
}

.author-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-100);
}

.post-date {
    font-size: 13px;
    color: var(--neutral-400);
}

.post-stats-detail {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--neutral-300);
}

/* Post Body */
.post-body-detail {
    font-size: 17px;
    line-height: 1.8;
    color: var(--neutral-100);
    margin-bottom: 32px;
}

.post-body-detail p {
    margin-bottom: 20px;
}

.post-body-detail strong {
    color: var(--primary-500);
    font-weight: 600;
}

.post-body-detail a {
    color: var(--accent-teal);
    text-decoration: underline;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--glass-border);
}

.post-tag {
    padding: 6px 14px;
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary-500);
    font-weight: 500;
    transition: all 0.2s ease;
}

.post-tag:hover {
    background: rgba(255, 107, 157, 0.2);
    transform: translateY(-2px);
}

/* Post Actions */
.post-actions-detail {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--neutral-200);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    border-color: var(--primary-500);
    transform: translateY(-2px) scale(1.02);
}

.btn-like.liked {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(199, 125, 255, 0.2));
    border-color: var(--primary-500);
    color: var(--primary-500);
}

.btn-like.liked svg {
    fill: var(--primary-500);
}

.btn-dislike.disliked {
    background: rgba(255, 100, 100, 0.15);
    border-color: #e85a7f;
    color: #e85a7f;
}

.btn-dislike.disliked svg {
    fill: #e85a7f;
}

.btn-report {
    margin-left: auto;
    color: var(--neutral-400);
}

.btn-report:hover {
    border-color: #ff4444;
    color: #ff4444;
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--glass-border);
}

/* Reply Badge */
.reply-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(199, 125, 255, 0.1));
    border: 1px solid var(--primary-500);
    border-radius: 12px;
    font-size: 14px;
    color: var(--neutral-200);
}

.reply-badge strong {
    color: var(--primary-500);
}

.reply-cancel {
    padding: 4px 8px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--neutral-300);
    cursor: pointer;
    transition: all 0.2s ease;
}

.reply-cancel:hover {
    background: var(--glass-bg);
    border-color: var(--primary-500);
    color: var(--primary-500);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.comments-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.btn-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--neutral-200);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sort:hover {
    border-color: var(--primary-500);
}

/* New Comment Form */
.new-comment-form {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    line-height: 1;
}

.comment-input-wrapper {
    flex: 1;
}

.comment-input-wrapper textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--neutral-100);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}

.comment-input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.btn-submit-comment {
    padding: 10px 24px;
    background: linear-gradient(135deg, #c62828, #6a1b5c);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.btn-submit-comment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-submit-comment:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.45);
    color: #ffffff;
}

/* Login Prompt */
.login-prompt {
    text-align: center;
    padding: 60px 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.login-prompt svg {
    color: var(--neutral-400);
    margin-bottom: 16px;
}

.login-prompt p {
    font-size: 16px;
    color: var(--neutral-300);
    margin-bottom: 20px;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Yorumları sadece giriş yapanlar görür; misafirler bu kutu görür */
.comments-login-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-align: center;
}

.comments-login-prompt-icon {
    color: var(--neutral-400);
}

.comments-login-prompt-text {
    font-size: 16px;
    color: var(--neutral-200);
    margin: 0;
    max-width: 360px;
}

.comments-login-prompt-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comments-login-prompt-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.comment-item:hover {
    border-color: var(--primary-500);
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.1);
}

.comment-item.reply {
    margin-left: 56px;
    background: rgba(255, 107, 157, 0.02);
}

.comment-content-wrapper {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--neutral-100);
}

.comment-date {
    font-size: 13px;
    color: var(--neutral-400);
}

.comment-menu {
    position: relative;
}

.comment-menu-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--neutral-400);
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-menu-btn:hover {
    background: var(--glass-hover);
    color: var(--neutral-200);
}

.comment-body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--neutral-200);
    margin-bottom: 12px;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.comment-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--neutral-400);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-action-btn:hover {
    background: var(--glass-hover);
    color: var(--neutral-200);
    transform: scale(1.05);
}

.comment-action-btn.liked {
    color: var(--primary-500);
}

.comment-action-btn.btn-comment-dislike.disliked {
    color: #e85a7f;
}

/* Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
}

.sidebar-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--neutral-100);
}

/* Author Card */
.author-card-content {
    text-align: center;
}

.author-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    line-height: 1;
}

.author-card-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.author-bio {
    font-size: 14px;
    color: var(--neutral-400);
    margin-bottom: 20px;
}

.author-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.author-stats .stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--neutral-400);
}

/* İtibar açıklama popover (sidebar) */
.author-stats .reputation-stat-wrap {
    position: relative;
}

.reputation-stat-wrap .stat-label {
    display: inline-flex;
    align-items: center;
}

.reputation-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 107, 157, 0.2);
    color: var(--primary-500);
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.2s, color 0.2s;
}

.reputation-info-btn:hover {
    background: var(--primary-500);
    color: white;
}

.reputation-info-btn--small {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.reputation-info-btn--small svg {
    width: 10px;
    height: 10px;
}

.reputation-popover {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    padding: 12px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 100;
    font-size: 12px;
    line-height: 1.5;
}

.reputation-popover[hidden] {
    display: none !important;
}

.reputation-popover.is-open {
    display: block;
}

.reputation-popover-title {
    font-weight: 700;
    color: var(--neutral-100);
    margin-bottom: 8px;
    font-size: 13px;
}

.reputation-popover-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.reputation-popover-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    color: var(--neutral-300);
}

.reputation-popover-list .rep-point {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--primary-500);
    min-width: 22px;
}

/* Related Posts */
.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-post-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.related-post-item:hover {
    border-color: var(--primary-500);
    transform: translateX(4px);
}

.related-post-category {
    font-size: 11px;
    color: var(--primary-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.related-post-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-100);
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-post-meta {
    font-size: 12px;
    color: var(--neutral-400);
}

/* Guidelines */
.guidelines ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guidelines li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--neutral-300);
    line-height: 1.5;
}

.guidelines li::before {
    content: '✓';
    color: var(--accent-teal);
    font-weight: 700;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .post-detail-layout {
        grid-template-columns: 1fr 300px;
        gap: 32px;
    }
}

@media (max-width: 968px) {
    .post-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        order: -1;
    }
    
    .post-main {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .post-title-detail {
        font-size: 1.75rem;
    }
    
    .post-body-detail {
        font-size: 16px;
    }
    
    .comment-item.reply {
        margin-left: 32px;
    }
    
    .new-comment-form {
        flex-direction: column;
    }
    
    .comment-avatar {
        display: none;
    }
}

