/* Modern Software Categories Layout - Theme Friendly */

/* Floating elements styling */
.swh-category-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.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: 1;
}

.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;
}

/* Main wrapper - Centered and responsive */
.sm-popular-categories-wrapper {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    min-height: 600px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    clear: both;
    margin: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.sm-categories-two-column {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Error message styling */
.sm-category-error-message {
    text-align: center;
    color: #666;
    padding: 40px;
}

.sm-category-error-message p {
    margin: 0;
    font-size: 1.1rem;
}

.sm-categories-left h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.sm-categories-vertical-list .sm-category-item {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    transition: box-shadow 0.2s ease;
}

.sm-categories-vertical-list .sm-category-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Software card styling */
.sm-software-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sm-software-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.sm-software-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sm-view-details-btn {
    background: #FA346E;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.sm-view-details-btn:hover {
    background: #ff577f;
}

.sm-popular-categories-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
}

.sm-categories-header {
    margin-bottom: 50px;
    text-align: center;
    padding: 0 20px;
}

.sm-categories-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sm-categories-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
    font-weight: 400;
}

/* Two Column Layout */
.sm-popular-categories-wrapper .sm-categories-two-column {
    display: flex !important;
    gap: 40px !important;
    align-items: flex-start !important;
    min-height: 500px !important;
    width: 100% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
}

.sm-popular-categories-wrapper .sm-categories-left {
    flex: 0 0 400px !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 25px !important;
    min-height: 500px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    position: relative !important;
    text-align: left !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 400px !important;
    max-width: 400px !important;
    z-index: 10 !important;
}

.sm-categories-left:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.sm-popular-categories-wrapper .sm-categories-left h3 {
    color: #333 !important;
    font-size: 1.3rem !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    font-weight: 600 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.sm-popular-categories-wrapper .sm-categories-vertical-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Category item styling */
.sm-popular-categories-wrapper .sm-category-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    visibility: visible;
    opacity: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    text-align: left;
}

/* Enhanced category styling */
.sm-popular-categories-wrapper .sm-enhanced-category {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: block;
    visibility: visible;
    opacity: 1;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    position: relative;
    text-align: left;
    overflow: hidden;
}

.sm-popular-categories-wrapper .sm-enhanced-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #4285f4 0%, #34a853 50%, #fa346e 100%);
    transform: translateX(-4px);
    transition: transform 0.3s ease;
}

.sm-popular-categories-wrapper .sm-enhanced-category:hover::before {
    transform: translateX(0);
}

.sm-popular-categories-wrapper .sm-category-item:hover {
    background: #e3f2fd;
    border-color: #FA346E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 52, 110, 0.15);
}

.sm-popular-categories-wrapper .sm-enhanced-category:hover {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    border-color: #666666;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 102, 102, 0.2);
}

.sm-popular-categories-wrapper .sm-category-item.sm-category-active {
    border-color: #FA346E;
    background: #fce4ec;
    box-shadow: 0 4px 12px rgba(250, 52, 110, 0.25);
    transform: translateY(-1px);
}

.sm-popular-categories-wrapper .sm-enhanced-category.sm-category-active {
    border-color: #4285f4;
    background: linear-gradient(135deg, #e8f2ff 0%, #f0f7ff 100%);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
    transform: translateY(-2px);
}

.sm-popular-categories-wrapper .sm-enhanced-category.sm-category-active::before {
    transform: translateX(0);
    background: linear-gradient(180deg, #4285f4 0%, #1a73e8 100%);
}

.sm-popular-categories-wrapper .sm-category-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    display: block;
    width: 100%;
    transition: color 0.3s ease;
}

/* Enhanced category link styling */
.sm-popular-categories-wrapper .sm-enhanced-category .sm-category-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.3s ease;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    width: 100%;
}

.sm-category-icon {
    font-size: 1.4rem;
    display: inline-block;
    width: 24px;
    text-align: center;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.sm-category-text {
    flex: 1;
    font-weight: 600;
    color: #2d3748;
    transition: color 0.3s ease;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.sm-category-count {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
    background: rgba(113, 128, 150, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sm-popular-categories-wrapper .sm-enhanced-category:hover .sm-category-icon {
    transform: scale(1.1);
}

.sm-popular-categories-wrapper .sm-enhanced-category:hover .sm-category-text {
    color: #333333;
}

.sm-popular-categories-wrapper .sm-enhanced-category:hover .sm-category-count {
    background: rgba(102, 102, 102, 0.15);
    color: #333333;
}

.sm-popular-categories-wrapper .sm-enhanced-category.sm-category-active .sm-category-text {
    color: #4285f4;
}

.sm-popular-categories-wrapper .sm-enhanced-category.sm-category-active .sm-category-count {
    background: rgba(66, 133, 244, 0.2);
    color: #4285f4;
    font-weight: 600;
}

.sm-popular-categories-wrapper .sm-category-link:hover {
    color: #FA346E;
    text-decoration: none;
}

.sm-popular-categories-wrapper .sm-category-active .sm-category-link {
    color: #FA346E;
    font-weight: 600;
}

.sm-software-right {
    flex: 1;
    min-height: 500px;
    text-align: left;
}

#sm-category-software-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    min-height: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#sm-category-software-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.sm-category-software-title {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* Software Grid Styling */
.sm-software-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.sm-software-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.sm-software-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateY(-6px);
    border-color: #4285f4;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.sm-software-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4285f4 0%, #34a853 50%, #fa346e 100%);
    transform: translateY(-4px);
    transition: transform 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.sm-software-card:hover::before {
    transform: translateY(0);
}

.sm-software-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
}

.sm-software-card:hover::after {
    width: 300px;
    height: 300px;
}

.sm-software-logo {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.sm-software-logo img {
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sm-software-card:hover .sm-software-logo img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sm-software-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.sm-software-card:hover .sm-software-title {
    color: #4285f4;
}

/* Star Rating Styles - Categories Grid */
.sm-popular-cat-rating {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px;
}

.sm-popular-cat-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
    font-size: 16px;
    line-height: 1;
    height: 20px;
}

.sm-popular-cat-star-filled {
    color: #ffc107;
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}

.sm-popular-cat-star-half {
    color: #ffc107;
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}

.sm-popular-cat-star-empty {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}

.sm-popular-cat-rating-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin-top: 2px;
    text-align: center;
}

/* Legacy support for existing classes */
.sm-rating {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-direction: column;
}

.sm-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    font-size: 16px;
    line-height: 1;
}

.star-filled {
    color: #ffc107;
}

.star-half {
    color: #ffc107;
}

.star-empty {
    color: #e0e0e0;
}

.sm-rating-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
}

.sm-software-actions {
    margin-top: 15px;
}

.sm-view-details-btn {
    background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(44, 24, 16, 0.3);
    position: relative;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
}

.sm-view-details-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.sm-view-details-btn:hover::before {
    left: 100%;
}

.sm-view-details-btn:hover {
    background: linear-gradient(135deg, #3d2317 0%, #261409 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 24, 16, 0.5);
}

.sm-software-card:hover .sm-view-details-btn {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(44, 24, 16, 0.5);
}

/* Simple List Format (Legacy) */
.sm-categories-list-wrapper {
    margin-top: 40px;
    text-align: left;
    display: flex;
    justify-content: center;
}

.sm-categories-simple-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    max-width: 800px;
}



.sm-popular-categories-wrapper .sm-category-featured {
    background: #e3f2fd;
    border-color: #007cba;
    color: #007cba;
}

.sm-popular-categories-wrapper .sm-category-featured:hover {
    background: #bbdefb;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.sm-popular-categories-wrapper .sm-category-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
}

.sm-popular-categories-wrapper .sm-category-link:hover {
    color: #007cba;
    text-decoration: none;
}

.sm-popular-categories-wrapper .sm-category-featured .sm-category-link {
    color: #764ba2;
    font-weight: 600;
}

.sm-popular-categories-wrapper .sm-category-featured .sm-category-link:hover {
    color: #5a4080;
}

.sm-no-categories {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sm-popular-categories-container {
        max-width: 1200px;
    }
    
    .sm-popular-categories-wrapper .sm-categories-two-column {
        max-width: 1200px !important;
    }
    
    .sm-popular-categories-wrapper .sm-categories-left {
        flex: 0 0 350px !important;
        width: 350px !important;
        max-width: 350px !important;
    }
}

@media (max-width: 768px) {
    .sm-popular-categories-wrapper {
        padding: 60px 15px;
    }
    
    .sm-categories-title {
        font-size: 2.2rem;
    }
    
    .sm-categories-subtitle {
        font-size: 1.1rem;
    }
    
    .sm-categories-two-column {
        flex-direction: column;
        gap: 25px;
        padding: 0 15px;
    }
    
    .sm-categories-left {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0;
    }
    
    .sm-software-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sm-software-card {
        padding: 20px;
    }
    
    .sm-categories-simple-list {
        gap: 8px;
    }
    
    .sm-category-item {
        padding: 8px 16px;
    }
    
    .sm-category-link {
        font-size: 14px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .sm-software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sm-categories-title {
        font-size: 1.8rem;
    }
    
    .sm-category-item {
        padding: 6px 12px;
    }
    
    .sm-category-link {
        font-size: 13px;
    }
}

/* Browse by Category section styling */
.swh-unique-browse-categories {
    position: relative;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 40px 0;
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
}

.swh-unique-browse-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.swh-unique-browse-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.swh-unique-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.swh-unique-category-card {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.swh-unique-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

.swh-unique-category-card:hover::before {
    transform: translateY(0);
}

.swh-unique-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    background: rgba(255,255,255,1);
}

.swh-unique-category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.swh-unique-category-card:hover .swh-unique-category-icon {
    transform: scale(1.1) rotate(5deg);
}

.swh-unique-category-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.swh-unique-category-card:hover .swh-unique-category-name {
    color: #667eea;
}

.swh-unique-category-count {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* 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;
}

/* Responsive adjustments for floating elements */
@media (max-width: 768px) {
    .swh-unique-browse-categories {
        padding: 40px 15px;
    }
    
    .swh-unique-browse-title {
        font-size: 2rem;
    }
    
    .swh-unique-categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .swh-category-floating-elements div {
        opacity: 0.5;
    }
    
    .swh-category-float-2, .swh-category-float-5 {
        display: none;
    }
}

/* High-specificity button override to ensure dark theme always applies */
.sm-popular-categories-wrapper .sm-software-grid .sm-software-card .sm-view-details-btn,
.sm-popular-categories-wrapper .sm-software-card .sm-view-details-btn,
.sm-software-grid .sm-software-card .sm-view-details-btn,
.sm-view-details-btn.sm-view-details-btn {
    background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 100%) !important;
    color: white !important;
    border: none !important;
}

.sm-popular-categories-wrapper .sm-software-grid .sm-software-card .sm-view-details-btn:hover,
.sm-popular-categories-wrapper .sm-software-card .sm-view-details-btn:hover,
.sm-software-grid .sm-software-card .sm-view-details-btn:hover,
.sm-view-details-btn.sm-view-details-btn:hover {
    background: linear-gradient(135deg, #3d2317 0%, #261409 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(44, 24, 16, 0.5) !important;
}

/* Force visibility override - Maximum specificity */
.sm-popular-categories-wrapper .sm-categories-left,
.sm-popular-categories-wrapper .sm-categories-left *,
.sm-popular-categories-wrapper .sm-categories-vertical-list,
.sm-popular-categories-wrapper .sm-category-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.sm-popular-categories-wrapper .sm-categories-two-column {
    display: flex !important;
}

.sm-popular-categories-wrapper .sm-categories-vertical-list {
    display: flex !important;
    flex-direction: column !important;
}
