/* Styles for Mini Forum comment section CTAs
   Focus: header CTA buttons (.cta-buttons-in-header) and shared .cta-btn rules
*/

.mini-forum-discussion-section .discussion-header{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-auto-rows: auto;
    gap:0.35rem 1rem;
    align-items:start;
}

.cta-buttons-in-header{
    display:flex;
    align-items:center;
    gap:0.6rem;
    grid-column:2;
    grid-row:1 / span 2;
    justify-self:end;
}

/* Ensure subtitle sits below the title in the left column */
.discussion-subtitle{
    margin:0;
    font-size:0.95rem;
    color:#666;
    grid-column:1;
}

.cta-buttons-in-header .cta-btn{
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  padding:8px 12px;
  border-radius:6px;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  line-height:1;
  transition:background-color .15s ease, transform .08s ease, box-shadow .12s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.cta-buttons-in-header .material-icons{
  font-size:18px;
  line-height:1;
  display:inline-block;
}

/* Primary button (prominent) */
.cta-buttons-in-header .cta-btn.primary{
  background:#1976d2; /* tuned blue */
  color:#fff;
  border:1px solid rgba(0,0,0,0.06);
}
.cta-buttons-in-header .cta-btn.primary:hover,
.cta-buttons-in-header .cta-btn.primary:focus{
  background:#155fa8;
  transform:translateY(-1px);
}

/* Secondary button (outline) */
.cta-buttons-in-header .cta-btn.secondary{
  background:transparent;
  color:#1976d2;
  border:1px solid #1976d2;
}
.cta-buttons-in-header .cta-btn.secondary:hover{
  background:rgba(25,118,210,0.06);
}

/* Small / compact view for narrow screens */
@media (max-width:640px){
    /* Stack header into a single column so title/subtitle take full width */
    .mini-forum-discussion-section .discussion-header{
        grid-template-columns: 1fr;
        gap:0.25rem 0.5rem;
        align-items:start;
    }

    /* Ensure title and subtitle occupy full width and stack */
    .discussion-title{
        margin:0 0 0.15rem 0;
        font-size:1.05rem;
        grid-column:1;
    }

    .discussion-subtitle{
        margin:0 0 0.5rem 0;
        font-size:0.95rem;
        color:#666;
        grid-column:1;
    }

    /* Place CTA below subtitle but keep it right-aligned */
    .cta-buttons-in-header{
        grid-column:1;
        justify-self:end;
        grid-row:auto;
        margin-top:6px;
    }

    .cta-buttons-in-header .cta-btn{
        padding:8px 10px;
        font-size:13px;
    }
}

/* Lightweight adjustments for lower CTA area to keep consistent look */
.forum-cta .cta-buttons .cta-btn{
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  padding:10px 14px;
  border-radius:6px;
  text-decoration:none;
}

/* small accessibility tweak: focus outline */
.cta-buttons-in-header .cta-btn:focus{
  outline:3px solid rgba(25,118,210,0.15);
  outline-offset:2px;
}
/* Mini Forum Discussion Section Styles */

.mini-forum-discussion-section {
    margin: 0;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* Discussion Header */
.discussion-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1.5rem;
}

.discussion-title {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.discussion-title .material-icons {
    color: #3b82f6;
    font-size: 2rem;
}

.discussion-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

/* Error State */
.forum-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
}

.forum-error .material-icons {
    color: #ef4444;
}

/* No Discussions State */
.no-discussions {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px dashed #cbd5e1;
}

.no-discussions .material-icons {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.no-discussions p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.start-discussion-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.start-discussion-btn:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Hot Threads Container */
.hot-threads-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Thread Card */
.thread-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Thread Header */
.thread-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.thread-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.4;
}

.thread-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.thread-title a:hover {
    color: #3b82f6;
}

/* Device Information Section - Above Title (for Cars, Phones, Motorcycles) */
.thread-device-info,
.thread-vehicle-info { /* Keep both for backward compatibility */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    order: -1; /* Ensure it appears above title */
}

.device-brand,
.device-model,
.vehicle-brand, /* Keep for backward compatibility */
.vehicle-model { /* Keep for backward compatibility */
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.device-brand .material-icons,
.device-model .material-icons,
.vehicle-brand .material-icons, /* Keep for backward compatibility */
.vehicle-model .material-icons {
    font-size: 0.8rem;
}

/* Matching brand/model styles (prominent colors) */
.device-brand.brand-match,
.vehicle-brand.brand-match { /* Keep for backward compatibility */
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
}

.device-model.model-match,
.vehicle-model.model-match { /* Keep for backward compatibility */
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Non-matching brand/model styles (subtle colors) */
.device-brand.brand-no-match,
.vehicle-brand.brand-no-match { /* Keep for backward compatibility */
    background: #64748b;
    color: #f1f5f9;
    box-shadow: 0 1px 2px rgba(100, 116, 139, 0.3);
}

.device-model.model-no-match,
.vehicle-model.model-no-match { /* Keep for backward compatibility */
    background: #94a3b8;
    color: #f8fafc;
    box-shadow: 0 1px 2px rgba(148, 163, 184, 0.3);
}

/* Tags Section */
.thread-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.thread-tags .material-icons {
    font-size: 1rem;
    color: #94a3b8;
    margin-right: 0.25rem;
}

.thread-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.1rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.thread-tag:hover {
    background: #e2e8f0;
    color: #334155;
}

.thread-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.thread-stats,
.thread-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #64748b;
    font-size: 0.75rem;
}

.thread-stats .material-icons,
.thread-date .material-icons {
    font-size: 1rem;
    color: #94a3b8;
}

.thread-sticky {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #fef3c7;
    color: #d97706;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.thread-sticky .material-icons {
    font-size: 0.875rem;
}

.thread-hot-score {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: help;
}

.thread-hot-score .material-icons {
    font-size: 0.875rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Thread Posts Container - Fixed Height with Scroll */
.thread-posts-container {
    max-height: 350px; /* Increased height for better content display */
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.thread-posts-container::-webkit-scrollbar {
    width: 6px;
}

.thread-posts-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.thread-posts-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.thread-posts-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Original Post (OP) Section */
.thread-op-post {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
}

.op-post {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.op-post-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0f2fe;
}

.op-post-header .post-author-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.op-post-header .post-author-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #0369a1;
}

.op-post-header .status-badge {
    background: #0ea5e9;
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.op-post-header .post-author-meta {
    color: #64748b;
    font-size: 0.875rem;
}

.op-post-content {
    color: #374151;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Thread Posts */
.thread-post {
    margin-bottom: 1rem;
    padding: 0.875rem;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.thread-post:last-child {
    margin-bottom: 0;
}

.root-post {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #3b82f6;
}

.reply-post.nested-reply {
    background: #f9fafb;
    border: 1px solid #f1f5f9;
    border-left: 3px solid #d1d5db;
    margin-left: 1rem;
    margin-top: 0.5rem;
    position: relative;
}

/* Enhanced depth-based styling for nested replies with visual indicators */
.thread-post[data-depth="1"] {
    margin-left: 1rem;
    position: relative;
}

.thread-post[data-depth="1"]::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: -0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, #3b82f6, transparent);
    border-radius: 1px;
}

.thread-post[data-depth="2"] {
    margin-left: 2rem;
    background: #fafafa;
    position: relative;
}

.thread-post[data-depth="2"]::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: -0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, #10b981, transparent);
    border-radius: 1px;
}

.thread-post[data-depth="3"] {
    margin-left: 3rem;
    background: #f5f5f5;
    position: relative;
}

.thread-post[data-depth="3"]::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: -0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, #f59e0b, transparent);
    border-radius: 1px;
}

.thread-post[data-depth="4"],
.thread-post[data-depth="5"],
.thread-post[data-depth="6"] {
    margin-left: 4rem;
    background: #f0f0f0;
    border-left-color: #a3a3a3;
    position: relative;
}

.thread-post[data-depth="4"]::before,
.thread-post[data-depth="5"]::before,
.thread-post[data-depth="6"]::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: -0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, #ef4444, transparent);
    border-radius: 1px;
}

/* Post Header for Root Posts */
.root-post .post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.post-author-info,
.post-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.post-author-info .material-icons,
.post-date .material-icons {
    font-size: 1rem;
    color: #9ca3af;
}

/* Post Content */
.post-content {
    position: relative;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.reply-indicator {
    position: absolute;
    left: -0.75rem;
    top: 0;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.reply-indicator .material-icons {
    font-size: 1rem;
    transform: rotate(90deg);
}

.content-text {
    padding-left: 0;
}

.nested-reply .content-text {
    padding-left: 1rem;
}

/* Post Meta (for non-header posts) */
.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.post-author,
.post-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.8rem;
}

.post-author .material-icons,
.post-date .material-icons {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* More Posts Indicator */
.more-posts-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f1f5f9;
    border-radius: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 1rem;
}

.more-posts-indicator .material-icons {
    color: #94a3b8;
}

/* No Posts State */
.no-posts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: #94a3b8;
    font-style: italic;
}

.no-posts .material-icons {
    color: #cbd5e1;
}

/* Thread Actions */
.thread-actions {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.view-thread-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.view-thread-btn:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.view-thread-btn .material-icons {
    font-size: 1rem;
}

/* Forum CTA Section */
.forum-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: white;
    margin-top: 2rem;
}

.cta-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.cta-content p {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.cta-btn.primary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn.primary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cta-btn .material-icons {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mini-forum-discussion-section {
        margin: 0;
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }
    
    .discussion-title {
        font-size: 1.5rem;
        flex-direction: row;
        gap: 0.25rem;
        align-items: center;
    }
    
    .discussion-title .material-icons {
        font-size: 1.75rem;
    }
    
    .thread-card {
        padding: 1rem;
    }
    
    /* Mobile styles for device info and tags */
    .thread-device-info,
    .thread-vehicle-info { /* Keep for backward compatibility */
        gap: 0.375rem;
        margin-bottom: 0.375rem;
    }
    
    .device-brand,
    .device-model,
    .vehicle-brand, /* Keep for backward compatibility */
    .vehicle-model { /* Keep for backward compatibility */
        padding: 0.15rem 0.375rem;
        font-size: 0.7rem;
        gap: 0.2rem;
        border-radius: 8px;
    }
    
    .device-brand .material-icons,
    .device-model .material-icons,
    .vehicle-brand .material-icons, /* Keep for backward compatibility */
    .vehicle-model .material-icons { /* Keep for backward compatibility */
        font-size: 0.7rem;
    }
    
    .thread-tags {
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .thread-tag {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
        border-radius: 8px;
    }
    
    .thread-meta {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .thread-stats,
    .thread-date {
        font-size: 0.8rem;
    }
    
    .thread-hot-score,
    .thread-sticky {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .thread-posts-container {
        max-height: 280px;
        padding: 0.75rem;
    }
    
    .thread-op-post {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .thread-post {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .reply-post.nested-reply {
        margin-left: 0.5rem;
    }
    
    /* Reduce depth indentation on mobile */
    .thread-post[data-depth="1"] {
        margin-left: 0.5rem;
    }
    
    .thread-post[data-depth="1"]::before {
        left: -0.5rem;
    }
    
    .thread-post[data-depth="2"] {
        margin-left: 1rem;
    }
    
    .thread-post[data-depth="2"]::before {
        left: -0.5rem;
    }
    
    .thread-post[data-depth="3"] {
        margin-left: 1.5rem;
    }
    
    .thread-post[data-depth="3"]::before {
        left: -0.5rem;
    }
    
    .thread-post[data-depth="4"],
    .thread-post[data-depth="5"],
    .thread-post[data-depth="6"] {
        margin-left: 2rem;
    }
    
    .thread-post[data-depth="4"]::before,
    .thread-post[data-depth="5"]::before,
    .thread-post[data-depth="6"]::before {
        left: -0.5rem;
    }
    
    .root-post .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .thread-meta,
    .post-meta {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        min-width: 200px;
        justify-content: center;
    }
    
    .forum-cta {
        padding: 1.5rem 1rem;
    }
}

/* Medium small screens (641px - 768px): keep header two-column and icon left */
@media (min-width: 641px) and (max-width: 768px) {
    .mini-forum-discussion-section .discussion-header{
        grid-template-columns: 1fr auto;
        gap:0.35rem 1rem;
        align-items:center;
    }

    .discussion-title{
        font-size:1.25rem;
        flex-direction:row;
        gap:0.5rem;
        align-items:center;
    }

    .discussion-title .material-icons{
        font-size:1.75rem;
        margin-right:0.4rem;
        display:inline-flex;
        vertical-align:middle;
    }

    .discussion-subtitle{
        font-size:0.95rem;
        margin-top:0;
        grid-column:1;
    }

    .cta-buttons-in-header{
        grid-column:2;
        grid-row:1 / span 2;
        justify-self:end;
        margin-top:0;
    }
}

@media (max-width: 480px) {
    .mini-forum-discussion-section {
        padding: 1rem 0.75rem;
    }
    
    .discussion-header {
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .discussion-title {
        font-size: 1.25rem;
    }
    
    .discussion-subtitle {
        font-size: 0.9rem;
    }
    
    .thread-posts-container {
        max-height: 250px;
        padding: 0.5rem;
    }
    
    .thread-op-post {
        padding: 0.5rem;
    }
    
    .thread-post {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .hot-threads-container {
        gap: 1rem;
    }
    
    /* Very compact nesting on small screens */
    .reply-post.nested-reply {
        margin-left: 0.25rem;
    }
    
    .reply-post.nested-reply::before {
        left: -0.25rem;
        width: 1px;
    }
    
    .thread-post[data-depth="1"] {
        margin-left: 0.25rem;
    }
    
    .thread-post[data-depth="1"]::before {
        left: -0.25rem;
        width: 1px;
    }
    
    .thread-post[data-depth="2"],
    .thread-post[data-depth="3"],
    .thread-post[data-depth="4"],
    .thread-post[data-depth="5"],
    .thread-post[data-depth="6"] {
        margin-left: 0.5rem;
    }
    
    .thread-post[data-depth="2"]::before,
    .thread-post[data-depth="3"]::before,
    .thread-post[data-depth="4"]::before,
    .thread-post[data-depth="5"]::before,
    .thread-post[data-depth="6"]::before {
        left: -0.25rem;
        width: 1px;
    }
    
    .nested-reply .content-text {
        padding-left: 0.5rem;
    }
}

/* Animation Enhancements */
.thread-card {
    animation: fadeInUp 0.5s ease-out;
}

.thread-card:nth-child(1) { animation-delay: 0.1s; }
.thread-card:nth-child(2) { animation-delay: 0.2s; }
.thread-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State (for future enhancement) */
.mini-forum-discussion-section.loading {
    position: relative;
}

.mini-forum-discussion-section.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

/* Focus States for Accessibility */
.view-thread-btn:focus,
.cta-btn:focus,
.start-discussion-btn:focus {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.thread-title a:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}