/* Client Showcase System Styles */

.client-showcase-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Category Filter */
.category-filter {
    margin-bottom: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.category-filter label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.category-selector {
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    min-width: 250px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.category-selector:hover,
.category-selector:focus {
    border-color: #007bff;
    outline: none;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.product-categories {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.product-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.view-client-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.view-client-btn:hover {
    background: #0056b3;
}

.no-products {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #999;
}

/* Modal Styles */
.client-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.client-modal.show {
    display: block;
}

.client-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.client-modal-close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.client-modal-close:hover,
.client-modal-close:focus {
    color: #333;
}

#client-popup-content {
    padding: 40px 30px 30px 30px;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #999;
}

/* Client Info Styles */
.client-info-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.client-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.client-name {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.client-company {
    font-size: 18px;
    color: #666;
    margin: 5px 0;
}

.client-description {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 20px 0;
}

.client-categories-display {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.client-categories-display strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}

.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.category-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #007bff;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.client-details {
    margin-top: 20px;
}

.client-detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.client-detail-row:last-child {
    border-bottom: none;
}

.client-detail-label {
    font-weight: 600;
    color: #333;
    min-width: 180px;
    flex-shrink: 0;
}

.client-detail-value {
    color: #555;
    flex-grow: 1;
}

.client-detail-value a {
    color: #007bff;
    text-decoration: none;
}

.client-detail-value a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .client-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    #client-popup-content {
        padding: 30px 20px 20px 20px;
    }
    
    .client-detail-row {
        flex-direction: column;
    }
    
    .client-detail-label {
        margin-bottom: 5px;
    }
    
    .category-selector {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .client-name {
        font-size: 24px;
    }
    
    .client-company {
        font-size: 16px;
    }
}
