/**
 * AI Product Showcase - Styles
 */

/* Showcase Container */
.aips-showcase {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

/* Grid Columns */
.aips-columns-2 {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.aips-columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.aips-columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Product Card */
.aips-product-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.aips-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

/* Featured Badge */
.aips-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.aips-featured .aips-product-card {
    border: 2px solid #f59e0b;
}

/* Product Image */
.aips-product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f3f4f6;
}

.aips-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.aips-product-card:hover .aips-product-image img {
    transform: scale(1.05);
}

.aips-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Product Content */
.aips-product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Title */
.aips-product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
}

.aips-product-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.3s ease;
}

.aips-product-title a:hover {
    color: #3b82f6;
}

/* Rating */
.aips-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.aips-stars {
    display: flex;
    gap: 2px;
}

.aips-star {
    width: 16px;
    height: 16px;
}

.aips-star-full {
    color: #f59e0b;
}

.aips-star-half {
    color: #f59e0b;
}

.aips-star-empty {
    color: #d1d5db;
}

.aips-rating-value {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
}

/* Categories */
.aips-product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.aips-category {
    display: inline-block;
    padding: 4px 10px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Excerpt */
.aips-product-excerpt {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

/* Features */
.aips-product-features {
    margin-bottom: 15px;
}

.aips-product-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aips-product-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.aips-product-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

/* Tags */
.aips-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.aips-tag {
    display: inline-block;
    padding: 3px 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    border-radius: 3px;
}

/* Footer */
.aips-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

/* Price */
.aips-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
}

/* Button */
.aips-product-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.aips-product-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

.aips-product-button svg {
    width: 14px;
    height: 14px;
}

/* No Products */
.aips-no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.125rem;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .aips-showcase {
        gap: 20px;
    }
    
    .aips-columns-2,
    .aips-columns-3,
    .aips-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .aips-product-image {
        height: 200px;
    }
    
    .aips-product-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .aips-product-button {
        width: 100%;
        justify-content: center;
    }
}

/* Loading Animation */
.aips-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.aips-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: aips-spin 0.8s linear infinite;
}

@keyframes aips-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   ZENITH CATEGORY CARDS - Added for Category Display
   ======================================== */

/* Category Section */
.aips-category-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.aips-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.aips-section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aips-section-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Category Card */
.aips-category-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    display: block;
}

.aips-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.aips-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.aips-category-card:hover::before {
    transform: scaleX(1);
}

/* Category Icon */
.aips-category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.aips-category-card:hover .aips-category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Category Title */
.aips-category-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

/* Category Count */
.aips-category-count {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.aips-category-count .count {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aips-category-count .label {
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Category Arrow */
.aips-category-arrow {
    font-size: 24px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #667eea;
}

.aips-category-card:hover .aips-category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aips-category-card {
    animation: fadeInUp 0.6s ease backwards;
}

.aips-category-card:nth-child(1) { animation-delay: 0.1s; }
.aips-category-card:nth-child(2) { animation-delay: 0.2s; }
.aips-category-card:nth-child(3) { animation-delay: 0.3s; }
.aips-category-card:nth-child(4) { animation-delay: 0.4s; }
.aips-category-card:nth-child(5) { animation-delay: 0.5s; }
.aips-category-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .aips-showcase.aips-columns-4,
    .aips-showcase.aips-columns-3,
    .aips-showcase.aips-columns-2 {
        grid-template-columns: 1fr;
    }
    
    .aips-section-header h2 {
        font-size: 32px;
    }
    
    .aips-category-card {
        padding: 25px;
    }
    
    .aips-category-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
}
