/* Trending Tags Widget Styles */
.cs-trending-tags-widget,
.cs-trending-tags-shortcode {
    margin: 1rem 0;
    font-family: 'Syne', serif !important;
}

/* .cs-trending-container {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
} */

.cs-trending-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f3f4;
}

/* Horizontal layout for shortcode - single row with borders */
.cs-trending-tags-shortcode .cs-trending-container {
    background: transparent;
    border: none;
    border-top: 3px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0;
    padding: 0.75rem 1rem;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cs-trending-tags-shortcode .cs-trending-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    flex-shrink: 0;
}

.cs-trending-tags-shortcode .cs-trending-tags {
    flex: 1;
    justify-content: flex-start;
    margin: 0;
}

.cs-trending-icon {
    display: flex;
    align-items: center;
    color: #ff3f01;
    flex-shrink: 0;
}

.cs-trending-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.cs-trending-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #ff3f01;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs-trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.cs-trending-tag {
    display: inline-flex;
    align-items: center;
    color: black;
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 16px;
    background: rgba(234, 237, 240, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.cs-trending-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 63, 1, 0.1), transparent);
    transition: left 0.5s ease;
}

.cs-trending-tag:hover {
    color: #ff3f01;
    background: rgba(255, 63, 1, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 63, 1, 0.15);
    text-decoration: none;
}

.cs-trending-tag:hover::before {
    left: 100%;
}

.cs-trending-tag:focus {
    outline: none;
    color: #ff3f01;
    background: rgba(255, 63, 1, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 63, 1, 0.2), 0 0 0 2px rgba(255, 63, 1, 0.3);
}

.cs-trending-tag:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.cs-tag-hash {
    color: #ff3f01;
    font-weight: 700;
    margin-right: 0.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-trending-tag:hover .cs-tag-hash {
    color: #ff3f01;
    transform: scale(1.1);
}

.cs-tag-name {
  text-transform: uppercase;
    
    font-weight: 500 !important;
    flex: 1;
}

.cs-tag-count {
    margin-left: 0.25rem;
    opacity: 0.7;
    font-size: 0.7rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cs-trending-container {
        padding: 0.75rem;
    }
    
    .cs-trending-header {
        margin-bottom: 0.5rem;
    }
    
    .cs-trending-title {
        font-size: 0.8rem;
    }
    
    .cs-trending-tags {
        gap: 0.375rem;
    }
    
    .cs-trending-tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .cs-trending-icon svg {
        width: 14px;
        height: 14px;
    }
    
    /* Responsive adjustments for shortcode horizontal layout */
    .cs-trending-tags-shortcode .cs-trending-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
    
    .cs-trending-tags-shortcode .cs-trending-header {
        align-self: flex-start;
    }
    
    .cs-trending-tags-shortcode .cs-trending-tags {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Widget Sidebar Specific Styles */
.widget.widget_csco_trending_tags {
    background: transparent;
    border: none;
    padding: 0;
}

.widget.widget_csco_trending_tags .cs-trending-container {
    margin: 0;
}

/* Alternative Color Schemes */
.cs-trending-container.cs-trending-dark {
    background: #2a303a;
    border-color: #4a5568;
    color: #ffffff;
}

.cs-trending-dark .cs-trending-title {
    color: #ffffff;
}

.cs-trending-dark .cs-trending-tag {
    background: #4a5568;
    color: #ebeff5;
    border-color: #6c7b8a;
}

.cs-trending-dark .cs-trending-tag:hover {
    background: #ff3f01;
    color: #ffffff;
    border-color: #ff3f01;
}

.cs-trending-dark .cs-tag-hash {
    color: #ff3f01;
}

.cs-trending-dark .cs-trending-tag:hover .cs-tag-hash {
    color: #ffffff;
}

/* Compact Horizontal Layout */
.cs-trending-container.cs-trending-compact {
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

.cs-trending-compact .cs-trending-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cs-trending-compact .cs-trending-tags {
    margin-left: 0.5rem;
    gap: 0.375rem;
}

.cs-trending-compact .cs-trending-tag {
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 12px;
}

/* Alternative border styles for shortcode */
.cs-trending-tags-shortcode.cs-trending-border-thick .cs-trending-container {
    border-top: 3px solid black;
    border-bottom: 1px solid black;
}

.cs-trending-tags-shortcode.cs-trending-border-dashed .cs-trending-container {
    border-top: 3px dashed #e9ecef;
    border-bottom: 1px dashed #e9ecef;
}

.cs-trending-tags-shortcode.cs-trending-border-gradient .cs-trending-container {
    border-top: 3px solid transparent;
    border-bottom: 1px solid transparent;
    background: 
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(90deg, #fe4206, #fe4206) border-box;
}

/* Animation for trending effect */
@keyframes trendingPulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(255, 63, 1, 0.4);
    }
    70% { 
        box-shadow: 0 0 0 4px rgba(255, 63, 1, 0);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(255, 63, 1, 0);
    }
}

.cs-trending-tag.cs-tag-hot {
    animation: trendingPulse 2s infinite;
}

/* Integration with theme's existing styles */
.cs-entry .cs-trending-tags-shortcode {
    margin: 1.5rem 0;
}

/* Print styles */
@media print {
    .cs-trending-tags-widget,
    .cs-trending-tags-shortcode {
        display: none;
    }
}