/* Widgets CTA Section */
.widgets-cta-section {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.widgets-cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}


.widgets-cta-content h1 {
    font-size: 30px;
    color: #ffffff;
    font-weight: 600;
}

.widgets-cta-btn {
    padding: 13px 33px;
    background: #ffffff;
    text-decoration-line: none;
    color: #667eea;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widgets-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


/* Widget Grid Section */
.widget-grid-section {
    width: 100%;
    padding: 60px 40px 100px;
    background: #fafafa;
    min-height: 600px;
}

.widget-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

/* Widget Card */
.widget-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.4s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.widget-card:hover {
    transform: translateY(-8px);
}

.widget-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 15px;
    position: relative;
    background: #f5f5f5;
    border: 1.5px solid #e8e8e8;
}

.widget-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.widget-card:hover .widget-image {
    transform: scale(1.05);
}

.widget-info {
    padding: 0 5px;
}

.widget-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111;
}

.widget-info p {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    line-height: 1.4;
}

.widget-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-price {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.widget-price.free {
    color: #00b894;
}

.widget-price.premium {
    color: #6c5ce7;
}

/* Title Row */
.title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-row h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: #111;
}

/* Badge */
.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.badge-pro {
    background: #fff3e0;
    color: #f57c00;
}

.badge-free {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    font-size: 18px;
    color: #888;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: #888;
}

.empty-state p {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 1400px) {
    .widget-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .widget-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        border-radius: 8px !important;
        margin: 5px;
    }
}

@media (max-width: 768px) {
    .widget-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .category-section {
        padding: 30px 20px 20px;
    }
    
    .widget-grid-section {
        padding: 40px 20px 80px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .widgets-cta-section {
        padding: 60px 20px;
    }
    
    .widgets-cta-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .widget-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}