/**
 * HOMEPAGE SEARCH & BROWSE BY CATEGORY STYLES
 * File: assets/css/frontend/homepage-search.css
 * 
 * RELATED TO SHORTCODE: [software_search_homepage]
 * 
 * CONTAINS STYLES FOR:
 * ====================
 * 1. Homepage Search Widget
 *    - Search bar with input field and button
 *    - Trending searches section
 *    - Search results dropdown
 *    - Decorative floating shapes and animations
 * 
 * 2. Browse by Category Section
 *    - Category grid layout
 *    - Category cards with icons and names
 *    - Responsive grid (auto-fit layout)
 *    - Floating decorative elements and particles
 * 
 * RELATED PHP FILE:
 * - home-page-search.php (sm_homepage_search_shortcode function)
 * 
 * RELATED CSS FILE:
 * - popular-categories.css (For "Most Popular Software Categories" shortcode)
 */

/* Homepage search container */
.swh-unique-homepage-search-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 150px 20px 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Geometric background shapes */
.swh-unique-homepage-search-container::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #4285f4, #34a853);
    transform: rotate(45deg);
    border-radius: 20px;
    z-index: 1;
}

.swh-unique-homepage-search-container::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 8%;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #1dd1a1, #10ac84);
    transform: rotate(30deg);
    border-radius: 15px;
    z-index: 1;
}

/* 3D Floating Cubic Shapes */
.swh-unique-homepage-search-container .swh-unique-shape-1 {
    position: absolute;
    bottom: 15%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    z-index: 1;
    transform-style: preserve-3d;
    animation: float-rotate-1 12s ease-in-out infinite;
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    opacity: 0.9;
}

.swh-unique-homepage-search-container .swh-unique-shape-1::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    background: linear-gradient(225deg, #764ba2, #667eea);
    border-radius: 12px;
    opacity: 0.7;
    z-index: -1;
    transform: translateZ(-20px) rotateX(45deg) rotateY(45deg);
}

.swh-unique-homepage-search-container .swh-unique-shape-1::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    transform: translateZ(10px);
}

.swh-unique-homepage-search-container .swh-unique-shape-2 {
    position: absolute;
    top: 25%;
    right: 8%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border-radius: 16px;
    z-index: 1;
    transform-style: preserve-3d;
    animation: float-rotate-2 15s ease-in-out infinite;
    box-shadow: 
        0 25px 50px rgba(240, 147, 251, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    opacity: 0.85;
}

.swh-unique-homepage-search-container .swh-unique-shape-2::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    background: linear-gradient(225deg, #f5576c, #f093fb);
    border-radius: 16px;
    opacity: 0.6;
    z-index: -1;
    transform: translateZ(-30px) rotateX(30deg) rotateY(-30deg);
}

.swh-unique-homepage-search-container .swh-unique-shape-2::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    transform: translateZ(15px);
}

/* Additional floating cubic elements */
.swh-unique-homepage-search-container::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-radius: 8px;
    z-index: 1;
    transform-style: preserve-3d;
    animation: float-rotate-3 10s ease-in-out infinite;
    box-shadow: 
        0 15px 30px rgba(79, 172, 254, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    opacity: 0.7;
}

.swh-unique-homepage-search-container::after {
    content: '';
    position: absolute;
    bottom: 30%;
    right: 20%;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    border-radius: 12px;
    z-index: 1;
    transform-style: preserve-3d;
    animation: float-rotate-4 14s ease-in-out infinite;
    box-shadow: 
        0 20px 40px rgba(168, 237, 234, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    opacity: 0.6;
}

/* Keyframe animations for floating cubic shapes */
@keyframes float-rotate-1 {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: translateY(-20px) rotateX(90deg) rotateY(45deg) rotateZ(15deg);
    }
    50% {
        transform: translateY(0px) rotateX(180deg) rotateY(90deg) rotateZ(30deg);
    }
    75% {
        transform: translateY(-15px) rotateX(270deg) rotateY(135deg) rotateZ(45deg);
    }
}

@keyframes float-rotate-2 {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    33% {
        transform: translateY(-25px) rotateX(120deg) rotateY(60deg) rotateZ(-20deg);
    }
    66% {
        transform: translateY(10px) rotateX(240deg) rotateY(120deg) rotateZ(-40deg);
    }
}

@keyframes float-rotate-3 {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    50% {
        transform: translateY(-30px) rotateX(180deg) rotateY(180deg) rotateZ(90deg);
    }
}

@keyframes float-rotate-4 {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    40% {
        transform: translateY(-18px) rotateX(144deg) rotateY(72deg) rotateZ(36deg);
    }
    80% {
        transform: translateY(8px) rotateX(288deg) rotateY(144deg) rotateZ(72deg);
    }
}

/* Search header styles */
.swh-unique-search-header {
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
    margin-top: 80px;
}

.swh-unique-search-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 40px;
    line-height: 1.2;
}

.swh-unique-search-subtitle {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 0;
    font-weight: 400;
}

.swh-unique-review-count {
    color: #e53e3e;
    font-weight: 600;
}

/* Search bar container */
.swh-unique-search-bar-container {
    position: relative;
    z-index: 1000;
    max-width: 1100px !important;
    width: 100% !important;
    margin: 0 auto 40px;
}

/* Search bar */
.swh-unique-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100% !important;
    max-width: 100% !important;
}

.swh-unique-search-bar:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e0;
}

.swh-unique-search-bar:focus-within {
    box-shadow: 0 8px 30px rgba(66, 133, 244, 0.2);
    border-color: #4285f4;
}

/* Search input */
#swh-unique-homepage-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 0;
    font-size: 16px;
    color: #2d3748;
    background: transparent;
    font-weight: 400;
    height: 56px;
    box-sizing: border-box;
}

#swh-unique-homepage-search-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* Search button */
#swh-unique-homepage-search-button {
    background: #1A172C;
    border: none;
    border-radius: 50px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    min-width: 120px;
    height: 56px;
    box-sizing: border-box;
    font-weight: 700;
}

#swh-unique-homepage-search-button:hover {
    background: #362e62;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 23, 44, 0.4);
}

#swh-unique-homepage-search-button:active {
    transform: translateY(0);
}

/* Search results dropdown */
.sm-search-results-dropdown,
.swh-unique-search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 8px;
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.sm-search-results-dropdown.show,
.swh-unique-search-results-dropdown.show {
    display: block !important;
}

/* Ensure search dropdown is always positioned correctly */
.swh-unique-search-bar-container .swh-unique-search-results-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001 !important;
    margin-top: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* High-specificity override for any theme conflicts */
/* Search results dropdown - properly scoped */
.swh-unique-homepage-search-container .swh-unique-search-bar-container .swh-unique-search-results-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2000 !important;
    transform: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: none !important;
}

.swh-unique-homepage-search-container .swh-unique-search-bar-container .swh-unique-search-results-dropdown.show {
    display: block !important;
}

/* Search results content container */
.sm-search-results-content,
.swh-unique-search-results-content {
    padding: 0;
    margin: 0;
}

/* Search result items */
.sm-search-result-item,
.swh-unique-search-result-item {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Search result info and content */
.swh-unique-result-info {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.swh-unique-result-content {
    flex: 1;
    min-width: 0;
    display: flex !important;
    flex-direction: column !important;
}

.swh-unique-result-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 8px 0 !important;
    line-height: 1.3;
    order: 1 !important;
    display: block !important;
}

.swh-unique-result-image {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-top: 4px;
}

.swh-unique-result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.swh-unique-result-rating {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    order: 2 !important;
}

/* Star rating display */
.swh-unique-homepage-stars {
    position: relative;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    color: #e2e8f0;
}

.swh-unique-homepage-stars::before {
    content: '☆☆☆☆☆';
    letter-spacing: 3px;
}

.swh-unique-homepage-stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #f6ad55;
}

.swh-unique-homepage-stars-inner::before {
    content: '★★★★★';
    letter-spacing: 3px;
}

.swh-unique-rating-text {
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 700;
}

.swh-unique-review-count {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
}

.swh-unique-result-description {
    font-size: 0.875rem;
    color: #718096;
    margin: 0 !important;
    margin-top: 4px !important;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    order: 3 !important;
}

/* Ultra-specific rules to force vertical layout */
.swh-unique-search-results-dropdown .swh-unique-search-result-item .swh-unique-result-info .swh-unique-result-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.swh-unique-search-results-dropdown .swh-unique-search-result-item .swh-unique-result-info .swh-unique-result-content .swh-unique-result-title {
    order: 1 !important;
    width: 100% !important;
    display: block !important;
    margin-bottom: 8px !important;
}

.swh-unique-search-results-dropdown .swh-unique-search-result-item .swh-unique-result-info .swh-unique-result-content .swh-unique-result-rating {
    order: 2 !important;
    width: 100% !important;
    display: flex !important;
    margin-bottom: 8px !important;
}

.swh-unique-search-results-dropdown .swh-unique-search-result-item .swh-unique-result-info .swh-unique-result-content .swh-unique-result-description {
    order: 3 !important;
    width: 100% !important;
}

.swh-unique-result-actions {
    flex-shrink: 0;
}

.swh-unique-view-details-btn {
    background: #2c1810;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.swh-unique-view-details-btn:hover {
    background: #1a0f0a;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 24, 16, 0.4);
}

.sm-search-result-item:hover,
.swh-unique-search-result-item:hover {
    background-color: #f7fafc;
}

.sm-search-result-item:last-child,
.swh-unique-search-result-item:last-child {
    border-bottom: none;
}

/* Loading and error states */
.sm-search-loading,
.sm-search-error,
.sm-no-results,
.swh-unique-search-loading,
.swh-unique-search-error,
.swh-unique-no-results {
    padding: 20px;
    text-align: center;
    color: #718096;
    font-style: italic;
}

.sm-search-error,
.swh-unique-search-error {
    color: #e53e3e;
}

/* Trending searches */
.swh-unique-trending-searches {
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* Ensure trending section doesn't interfere with search dropdown */
    margin-top: 40px;
    clear: both;
}

/* Browse by Category Section */
.swh-unique-browse-categories {
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    clear: both;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.swh-unique-browse-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.swh-unique-browse-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* Category Cards Grid */
.swh-unique-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.swh-unique-category-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.swh-unique-category-card:hover {
    border-color: #4285f4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.2);
    background: #f8f9ff;
}

.swh-unique-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4285f4, #34a853);
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}

.swh-unique-category-card:hover::before {
    transform: translateY(0);
}

.swh-unique-category-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.swh-unique-category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.3;
}

.swh-unique-category-count {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

/* Floating elements styling for Browse by Category */
.swh-category-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.swh-category-floating-elements div {
    position: absolute;
    background: rgba(250, 52, 110, 0.25);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(250, 52, 110, 0.3);
    pointer-events: none;
    animation: float 5s infinite ease-in-out;
    z-index: 0;
}

.swh-category-geometric-1, .swh-category-geometric-2, .swh-category-geometric-3 {
    background: transparent;
    border: 2px solid rgba(113, 128, 150, 0.7);
    mix-blend-mode: multiply;
    border-radius: 10%;
    animation: rotate 10s infinite linear;
}

.swh-category-wave-1, .swh-category-wave-2 {
    width: 100%;
    height: 20px;
    background: repeating-linear-gradient(90deg, rgba(66, 133, 244, 0.2) 0, rgba(66, 133, 244, 0.2) 1px, transparent 1px, transparent 30px);
    animation: wave 15s infinite;
    opacity: 0.5;
}

.swh-category-geometric-1 {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 15%;
    animation-duration: 12s;
}

.swh-category-geometric-2 {
    width: 100px;
    height: 100px;
    top: 25%;
    right: 20%;
    animation-duration: 20s;
}

.swh-category-geometric-3 {
    width: 60px;
    height: 60px;
    bottom: 15%;
    left: 50%;
    animation-duration: 16s;
}

.swh-category-wave-1 {
    bottom: 0;
    left: 0;
    animation: wave 25s linear infinite;
}

.swh-category-wave-2 {
    top: 0;
    right: 0;
    animation: wave 18s linear infinite reverse;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes wave {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.swh-category-float-1 {
    width: 60px;
    height: 60px;
    top: 20px;
    left: -30px;
    background: rgba(66, 133, 244, 0.3);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.swh-category-float-2 {
    width: 100px;
    height: 100px;
    top: 100px;
    right: -50px;
    background: rgba(52, 168, 83, 0.3);
    box-shadow: 0 4px 15px rgba(52, 168, 83, 0.3);
}

.swh-category-float-3 {
    width: 80px;
    height: 80px;
    bottom: 60px;
    right: 20px;
    background: rgba(255, 193, 7, 0.3);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.swh-category-float-4 {
    width: 50px;
    height: 50px;
    bottom: 120px;
    left: 10px;
    background: rgba(156, 39, 176, 0.3);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.swh-category-float-5 {
    width: 90px;
    height: 90px;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 87, 34, 0.3);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.swh-category-particle-1, .swh-category-particle-2, .swh-category-particle-3 {
    width: 10px;
    height: 10px;
    background: rgba(250, 52, 110, 0.8);
}

.swh-category-particle-1 {
    top: 50%;
    left: 30%;
    animation-duration: 3s;
}

.swh-category-particle-2 {
    top: 60%;
    left: 70%;
    animation-duration: 4s;
}

.swh-category-particle-3 {
    bottom: 20%;
    right: 10%;
    animation-duration: 6s;
}

/* Enhanced floating elements with staggered animations */
.swh-category-float-1 {
    animation-delay: 0s;
    animation-duration: 6s;
}

.swh-category-float-2 {
    animation-delay: 1s;
    animation-duration: 8s;
}

.swh-category-float-3 {
    animation-delay: 2s;
    animation-duration: 7s;
}

.swh-category-float-4 {
    animation-delay: 0.5s;
    animation-duration: 5s;
}

.swh-category-float-5 {
    animation-delay: 1.5s;
    animation-duration: 9s;
}

/* Add pulsing animation for particles */
@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.swh-category-particle-1 {
    animation: pulse 2s infinite;
}

.swh-category-particle-2 {
    animation: pulse 2.5s infinite;
}

.swh-category-particle-3 {
    animation: pulse 3s infinite;
}

.swh-unique-trending-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a !important;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.swh-unique-trending-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.swh-unique-trending-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    text-decoration: none;
    color: #2d3748 !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.swh-unique-trending-item:hover {
    background: #4285f4;
    color: white !important;
    border-color: #4285f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.3);
    text-decoration: none;
}

.swh-unique-trending-icon {
    font-size: 14px;
    filter: brightness(1.2);
}

/* Most Popular Software Categories - ENHANCED STYLING */
.sm-popular-categories-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f3f8 100%);
    padding: 80px 20px;
    margin-top: 40px;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.sm-popular-categories-wrapper::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.sm-popular-categories-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
    z-index: 0;
}

.sm-popular-categories-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.sm-categories-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.sm-categories-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #d81b60;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.sm-categories-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
    font-weight: 400;
}

/* Two column layout */
.sm-categories-two-column {
    display: grid !important;
    grid-template-columns: 320px 1fr !important;
    gap: 40px;
    align-items: start;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Left column - Categories list */
.sm-categories-left {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 25px;
    border: 1px solid #e8e8e8;
    min-height: 400px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: sticky;
    top: 20px;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sm-categories-left:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-color: #d81b60;
}

.sm-categories-left h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #d81b60;
    margin-bottom: 20px;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 15px;
}

.sm-categories-vertical-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.sm-category-item {
    background: #f8f8f8;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 15px 14px;
    margin-bottom: 0 !important;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block !important;
    position: relative;
    text-align: left;
}

.sm-category-item:hover {
    border-color: #d81b60;
    background: #fff5f7;
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(216, 27, 96, 0.15);
}

.sm-category-item.sm-category-active {
    background: #fff5f7;
    border-color: #d81b60;
    box-shadow: 0 2px 8px rgba(216, 27, 96, 0.2);
}

.sm-category-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 !important;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100% !important;
    box-sizing: border-box !important;
}

.sm-category-link:hover {
    color: #d81b60;
}

.sm-category-active .sm-category-link {
    color: #d81b60;
    font-weight: 700;
}

/* Right column - Software display */
.sm-software-right {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    min-height: auto;
    position: relative;
    z-index: 10;
}

.sm-category-software-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #d81b60;
    margin-bottom: 30px;
    border-bottom: none;
    padding-bottom: 0;
}

.sm-software-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 28px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative;
    z-index: 10;
}

.sm-software-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.sm-software-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(216, 27, 96, 0.15);
    border-color: #d81b60;
}

.sm-software-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.sm-software-card:hover .sm-software-logo {
    transform: scale(1.05);
}

.sm-software-logo img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.sm-software-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.sm-popular-cat-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-direction: column;
}

.sm-popular-cat-stars {
    display: flex;
    gap: 2px;
}

.sm-popular-cat-star-filled {
    color: #ffa500;
    font-size: 16px;
}

.sm-popular-cat-star-half {
    color: #ffa500;
    font-size: 16px;
    opacity: 0.6;
}

.sm-popular-cat-star-empty {
    color: #e8e8e8;
    font-size: 16px;
}

.sm-popular-cat-rating-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

/* Hide software description in popular categories */
.sm-software-card p {
    display: none !important;
}

.sm-software-actions {
    margin-top: 20px;
}

.sm-view-details-btn {
    background: #1a1a1a;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #1a1a1a;
}

.sm-view-details-btn:hover {
    background: #ffffff;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 26, 26, 0.2);
}

.sm-default-message {
    text-align: center;
    color: #999;
    font-style: italic;
    margin-top: 60px;
    font-size: 1.1rem;
}

/* Loading state */
#sm-category-software-loading {
    display: none !important;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 60px 20px;
    position: relative;
    z-index: 10;
}

/* Responsive design */
@media (max-width: 768px) {
    .sm-categories-two-column {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .sm-categories-left {
        position: relative;
        top: auto;
        width: 100%;
        max-width: 100%;
        order: 2;
    }
    
    .sm-software-right {
        order: 1;
    }
    
    .sm-software-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .sm-categories-title {
        font-size: 2rem;
    }
    
    .sm-categories-subtitle {
        font-size: 1rem;
    }
}
