/* Thought Detail Page Styles */

/* Back Button */
.back-btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.back-btn:hover {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.1);
}

/* Thought Detail Card */
.thought-detail-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.thought-detail-card:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

/* Large Avatar for Detail Page */
.thought-avatar-large {
    flex-shrink: 0;
}

.avatar-circle-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.8rem;
    border: 3px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.avatar-circle-large.user-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.avatar-circle-large.anon-avatar {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    color: #888;
    font-size: 2rem;
}

/* Author Info */
.thought-meta-detail {
    margin-bottom: 0;
}

.author-name-large {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    display: block;
    margin-bottom: 0.25rem;
}

.anon-name-large {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
}

.mood-emoji-large {
    font-size: 1.8rem;
    display: inline-block;
}

.thought-timestamp-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.thought-timestamp-detail i {
    opacity: 0.7;
}

/* Content */
.thought-content-detail {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1rem;
}

.thought-content-detail p {
    margin-bottom: 1rem;
}

.thought-content-detail p:last-child {
    margin-bottom: 0;
}

/* Actions Bar */
.thought-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-top: 1rem;
}

.stats-large {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.stat-item i {
    opacity: 0.7;
    font-size: 1.1rem;
}

.stat-item strong {
    color: var(--text-primary);
    font-weight: 700;
}

.btn-pill {
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-pill:hover {
    transform: translateY(-2px);
}

/* Comment Section */
.comment-section {
    margin-top: 2rem;
}

.comment-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.comment-section-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.comment-section-header .badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

/* Comments */
.comment {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-top: none;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.comment:first-of-type {
    border-top: 1px solid var(--border-color);
}

.comment:last-of-type {
    border-radius: 0 0 12px 12px;
}

.comment:hover {
    background: rgba(255, 255, 255, 0.04);
}

.comment .reply {
    margin-left: 3rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
}

/* Empty Comments State */
.empty-comments {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.empty-comments i {
    opacity: 0.3;
    color: var(--text-muted);
}

.empty-comments h6 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Comment Form Card */
.comment-form-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.comment-form-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Tags on Detail Page */
.thought-detail-card .tag {
    display: inline-block;
    background: rgba(108, 155, 214, 0.1);
    border: 1px solid rgba(108, 155, 214, 0.3);
    padding: 0.35rem 0.85rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #6c9bd6;
    text-decoration: none;
    transition: all 0.2s;
}

.thought-detail-card .tag:hover {
    background: rgba(108, 155, 214, 0.2);
    border-color: #6c9bd6;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .avatar-circle-large {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
    
    .author-name-large,
    .anon-name-large {
        font-size: 1.1rem;
    }
    
    .thought-content-detail {
        font-size: 1rem;
        padding: 1rem 0;
    }
    
    .stats-large {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .stat-item {
        font-size: 0.85rem;
    }
    
    .thought-actions-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .comment .reply {
        margin-left: 1.5rem;
    }
}

@media (max-width: 576px) {
    .thought-detail-card .d-flex.gap-3 {
        gap: 1rem !important;
    }
    
    .avatar-circle-large {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
}
