/**
 * Topic List Widget CSS
 * สไตล์สำหรับ Topic List Widget
 */

.sky-topic-list-wrapper {
    width: 100%;
    padding: 0;
}

.sky-topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.sky-topic-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sky-topic-view-all {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(222, 0, 125, 0.15) 0%, rgba(240, 90, 40, 0.15) 100%);
    border: 1px solid rgba(240, 90, 40, 0.3);
    border-radius: 8px;
    color: #f05a28;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sky-topic-view-all:hover {
    background: linear-gradient(135deg, #de007d 0%, #f05a28 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 16px rgba(240, 90, 40, 0.3);
    transform: translateY(-2px);
}

.sky-topic-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sky-topic-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background-color: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sky-topic-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(222, 0, 125, 0.3), rgba(240, 90, 40, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sky-topic-item:hover {
    background-color: #27272a;
    transform: translateX(4px);
    border-color: rgba(240, 90, 40, 0.2);
}

.sky-topic-item:hover::before {
    opacity: 1;
}

.sky-topic-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.sky-topic-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sky-topic-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sky-topic-badge-icon {
    font-size: 12px;
}

.sky-topic-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 400;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sky-topic-title {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sky-topic-item:hover .sky-topic-title {
    color: #f05a28;
}

.sky-topic-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sky-topic-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sky-topic-meta i {
    font-size: 12px;
}

.sky-topic-author {
    font-weight: 400;
}

.sky-topic-comments,
.sky-topic-views,
.sky-topic-time {
    font-weight: 300;
}
a.sky-topic-item svg {
    width: 14px;
    height: 14px;
}
/* Responsive - Mobile */
@media (max-width: 640px) {
    .sky-topic-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sky-topic-section-title {
        font-size: 20px;
    }
    
    .sky-topic-item {
        padding: 16px;
    }
    
    .sky-topic-title {
        font-size: 15px;
    }
    
    .sky-topic-meta {
        font-size: 12px;
        gap: 12px;
    }
}

/* Light Mode Support */
.light .sky-topic-section-title {
    color: #0a0a0a;
}

.light .sky-topic-item {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

.light .sky-topic-item:hover {
    background-color: #f9fafb;
}

.light .sky-topic-title {
    color: #0a0a0a;
}

.light .sky-topic-status {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.5);
}

.light .sky-topic-meta {
    color: rgba(0, 0, 0, 0.5);
}
