/* Derek's Category Top 5 - Frontend Styles */

.dct5-wrapper {
    width: 100%;
}

.dct5-header {
    margin-bottom: 12px;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.4;
}

.dct5-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    transition: background-color 0.3s ease;
}

.dct5-item:last-child {
    margin-bottom: 0;
}

.dct5-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.dct5-thumb {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    overflow: hidden;
    border-radius: 4px;
}

.dct5-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.dct5-thumb a:hover img {
    transform: scale(1.05);
}

.dct5-content {
    flex: 1;
    min-width: 0;
}

.dct5-title {
    margin: 0 0 4px 0;
    line-height: 1.3;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dct5-title a {
    text-decoration: none;
    color: inherit;
}

.dct5-title a:hover {
    text-decoration: underline;
}

.dct5-meta {
    font-size: 12px;
    color: #666;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    flex-wrap: wrap;
}

.dct5-meta a {
    color: #666;
    text-decoration: none;
}

.dct5-meta a:hover {
    color: #333;
    text-decoration: underline;
}

.dct5-divider {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 8px;
    margin-bottom: 8px;
    clear: both;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dct5-thumb {
        width: 75px;
        height: 75px;
        flex: 0 0 75px;
    }
    
    .dct5-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .dct5-meta {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .dct5-item {
        gap: 8px;
    }
    
    .dct5-thumb {
        width: 60px;
        height: 60px;
        flex: 0 0 60px;
    }
    
    .dct5-title {
        font-size: 12px;
    }
}