/* Styles for popular tools shortcode */
.otsm-popular-tools {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.otsm-popular-tools h3 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
    color: #333;
    font-size: 1.5em;
}

.popular-tools-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
    gap: 20px;
}

.tool-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    position: relative;
}

.tool-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tool-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    z-index: 1;
}

.tool-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #e9ecef;
}

.tool-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-content {
    padding: 15px;
}

.tool-title {
    margin: 0 0 10px;
    font-size: 1.2em;
    line-height: 1.3;
}

.tool-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tool-title a:hover {
    color: #007cba;
}

.tool-views {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.views-count {
    color: #28a745;
    font-weight: bold;
}

.tool-description {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 10px;
}

.tool-categories {
    font-size: 0.85em;
    color: #666;
}

.tool-categories a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tool-categories a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 1024px) {
    .popular-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .otsm-popular-tools {
        padding: 15px;
    }
    
    .popular-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-title {
        font-size: 1.1em;
    }
} 