/**
 * Wow Widgets CPT Frontend Styles
 */

.wow-elements-cpt-list-style-yes .wow-widget-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px;
}
.wow-elements-cpt-list-style-yes .wow-widget-badge {
    position: relative;
    top: 0;
    right: 0;
    box-shadow: none;
    padding: 1px 7px;
}
.wow-elements-cpt-list-style-yes .wow-widget-icon-wrapper {
    margin-bottom: 0;
    height: 36px;
    width: 36px;
    min-width: 36px;
}
.wow-elements-cpt-list-style-yes .wow-widget-font-icon {
    font-size: 18px;
}
.wow-elements-cpt-list-style-yes .wow-title-icon-wrap {
    gap: 10px;
    display: flex;
    align-items: center;
    flex-direction: row;
}
.wow-elements-cpt-list-style-yes .wow-widget-icon {
    max-width: 18px;
    width: 18px;
    max-height: 18px;
}
.wow-elements-cpt-list-style-yes .wow-widget-font-icon {
    font-size: 18px;
}
.wow-elements-cpt-list-style-yes .wow-widget-content {
    text-align: left;
}
.wow-widget-text {
    margin: 7px 0 0 0;
}
.wow-widget-text p {
    margin: 0;
}

.wow-title-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.wow-elements-cpt-wrapper {
    width: 100%;
}

.wow-elements-cpt-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.wow-widget-link {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.wow-widgets-filter-sidebar {
    flex: 0 0 310px;
    position: sticky;
    top: 20px;
    background-color: #FFFFFF;
    padding: 30px;
    z-index: 0;
    border-radius: 20px 20px 20px 20px;
    box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.09);
}

.wow-widgets-filter-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #720eec;
}

.wow-widgets-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wow-widgets-filter-list li {
    margin: 0 0 12px 0;
}

.wow-widgets-filter-btn {
    display: block;
    color: #414141;
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
    text-decoration: none;
}

.wow-widgets-filter-btn:hover {
    color: #B94DE4;
    text-decoration: none;
}

.wow-widgets-filter-btn.active {
    color: #B94DE4;
}

.wow-widgets-filter-count {
    float: right;
    font-size: 12px;
    opacity: 0.8;
}

.wow-elements-cpt-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.wow-cpt-top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 20px;
    z-index: 10;
}

.wow-cpt-search-wrap {
    flex: 1;
    min-width: 200px;
}

.wow-elements-cpt-wrapper .wow-cpt-search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px 50%;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wow-elements-cpt-wrapper .wow-cpt-search-input:focus {
    outline: none;
    border-color: #720eec;
    background-color: #fff;
}

.wow-elements-cpt-wrapper .wow-cpt-search-input::placeholder {
    color: #999;
}

.wow-cpt-type-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
}


.wow-elements-cpt-wrapper .wow-cpt-type-btn {
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background-color: #f0f0f0;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.wow-elements-cpt-wrapper .wow-cpt-type-btn:hover {
    color: #720eec;
    background-color: #f5eeff;
}

.wow-elements-cpt-wrapper .wow-cpt-type-btn.active {
    color: #fff;
    background: linear-gradient(180deg, #8F48FF 0%, #720eec 100%);
    border-color: #720eec;
}

.wow-elements-cpt-grid {
    display: grid;
    gap: 30px;
}

.wow-widget-item {
    position: relative;
    padding: 40px 20px 40px 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #FFFFFF;
    border-radius: 15px 15px 15px 15px;
    box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.09);
}

.wow-widget-item:hover {
    transform: translateY(-10px);
    box-shadow: 0px 40px 30px 0px rgba(0, 0, 0, 0.13);
}

.wow-widget-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #F7F7F7;
    border-radius: 8px 8px 8px 8px;
    padding: 6px 10px 6px 10px;
    box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 600;
}

.wow-widget-badge.free {
    background-color: #fff;
    color: #000;
}

.wow-widget-badge.pro {
    background-color: transparent;
    background-image: linear-gradient(180deg, #FE55B9 0%, #8F48FF 100%);
    color: #fff;
}

.wow-widget-icon-wrapper {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 80px;
    min-width: 80px;
    border-radius: 100%;
    background-color: #F7F7F7;
    transition: all 0.3s ease;
}

.wow-widget-icon {
    max-width: 40px;
    width: 40px;
    max-height: 40px;
    height: auto;
    transition: all 0.3s ease;
    display: block;
    object-fit: contain;
}

.wow-widget-font-icon {
    font-size: 40px;
    line-height: 1;
    color: #333;
    display: inline-block;
    transition: all 0.3s ease;
}

.wow-widget-item:hover .wow-widget-icon, 
.wow-widget-item:hover .wow-widget-font-icon {
    transform: scale(1.1);
}

.wow-widget-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: capitalize;
}

.wow-widget-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wow-widget-item:hover .wow-widget-title a {
    color: #B94DE4;
    text-decoration: none;
}

.wow-widget-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .wow-cpt-top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 20px;
        padding: 12px 16px;
    }
    .wow-cpt-search-wrap {
        min-width: 0;
    }
    .wow-cpt-type-filter {
        justify-content: flex-start;
    }
}

@media (max-width: 1024px) {
    .wow-elements-cpt-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .wow-widgets-filter-sidebar {
        flex: 1;
        width: 100%;
        position: relative;
        top: 0;
    }
    
    .wow-widgets-filter-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .wow-widgets-filter-list li {
        margin: 0;
        flex: 0 0 auto;
    }
    
    .wow-widgets-filter-btn {
        white-space: nowrap;
    }
    
    .wow-widgets-filter-btn:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    .wow-elements-cpt-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .wow-widget-item {
        padding: 20px;
    }
    
    .wow-widgets-filter-sidebar {
        padding: 15px;
    }
    
    .wow-widgets-filter-title {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .wow-elements-cpt-grid {
        grid-template-columns: 1fr !important;
    }
    
    .wow-widgets-filter-list {
        flex-direction: column;
    }
    
    .wow-widgets-filter-list li {
        width: 100%;
    }
    
    .wow-widgets-filter-btn {
        width: 100%;
    }
}
