/* ========================================
   MODERN CATALOG STYLES - BLACK & WHITE THEME
   ======================================== */

/* Consistent Tag Styling for All Components */
.consistent-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #000000;
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #000000;
    transition: all 0.2s ease;
    margin-right: 4px;
    margin-bottom: 4px;
}

.consistent-tag:hover {
    background: #333333;
    border-color: #333333;
}

/* Modern List Card Styling - Black & White */
.modern-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
}

.modern-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #000000;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #000000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

/* Image Container */
.list-item-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f8f8;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: grayscale(20%);
}

.modern-card:hover .image-wrapper img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.modern-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666666;
    font-size: 0.9rem;
    height: 100%;
}

.modern-placeholder i {
    font-size: 2rem;
    opacity: 0.5;
    color: #999999;
}

.modern-placeholder span {
    font-weight: 500;
    opacity: 0.7;
    color: #777777;
}

/* Category Badge - Black & White */
.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    color: #000000;
}

/* Content Styling */
.modern-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.item-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #000000;
    line-height: 1.3;
}

.item-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.brand-badge,
.type-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f8f8f8;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.brand-badge i,
.type-badge i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.item-description p {
    margin: 0;
    line-height: 1.5;
    color: #555555;
    font-size: 0.85rem;
}

/* Footer */
.item-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.modern-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

/* ========================================
   MODERN GRID CARD STYLES (for createHardwareCard)
   ======================================== */

/* Modern Grid Card Layout - Black & White */
.modern-grid-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modern-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: #000000;
}

.card-border-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #000000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card-border-accent[data-category="captation"] {
    background: #000000;
}

.card-border-accent[data-category="visualisation"] {
    background: #333333;
}

.card-border-accent[data-category="interaction"] {
    background: #666666;
}

.card-border-accent[data-category="integration"] {
    background: #999999;
}

.modern-grid-card:hover .card-border-accent {
    transform: scaleX(1);
}

/* Image Section */
.card-image-section {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f8f8;
}

.modern-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: grayscale(20%);
}

.modern-grid-card:hover .modern-image-wrapper img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Category Indicator - Black & White */
.category-indicator {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 8px 14px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    color: #000000;
}

/* Content Section */
.card-content-section {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: #000000;
    line-height: 1.3;
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666666;
    font-size: 0.9rem;
    font-weight: 500;
}

.brand-info i {
    opacity: 0.7;
    font-size: 0.8rem;
}

.card-description p {
    margin: 0;
    line-height: 1.5;
    color: #555555;
    font-size: 0.85rem;
}

/* Specifications */
.card-specifications {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modern-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 12px;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 3px solid #000000;
    gap: 12px;
}

.spec-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: #333333;
    flex-shrink: 0;
    min-width: 60px;
}

.spec-value {
    font-weight: 500;
    font-size: 0.8rem;
    color: #666666;
    text-align: right;
    word-break: break-word;
    line-height: 1.3;
}

/* Removed .more-specs styling as functionality was removed */

/* ========================================
   MODERN CATEGORY HEADER STYLES
   ======================================== */

/* Modern Category Header - Black & White */
.modern-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    position: relative;
}

.modern-category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #000000;
    border-radius: 12px 12px 0 0;
}

.modern-category-header[data-category="captation"]::before {
    background: #000000;
}

.modern-category-header[data-category="visualisation"]::before {
    background: #333333;
}

.modern-category-header[data-category="interaction"]::before {
    background: #666666;
}

.modern-category-header[data-category="integration"]::before {
    background: #999999;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
}

.category-icon i {
    font-size: 1.25rem;
    color: #000000;
}

.modern-category-header[data-category="captation"] .category-icon {
    border-color: #000000;
}

.modern-category-header[data-category="visualisation"] .category-icon {
    border-color: #333333;
}

.modern-category-header[data-category="interaction"] .category-icon {
    border-color: #666666;
}

.modern-category-header[data-category="integration"] .category-icon {
    border-color: #999999;
}

.category-title h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.02em;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-count {
    background: #f8f8f8;
    color: #666666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #e0e0e0;
}

/* Hover Effects */
.modern-category-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #000000;
}

.modern-category-header:hover .category-icon {
    background: #000000;
}

.modern-category-header:hover .category-icon i {
    color: #ffffff;
}

/* Responsive Category Header */
@media (max-width: 768px) {
    .modern-category-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
        text-align: center;
    }
    
    .category-title {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .category-title h3 {
        font-size: 1.25rem;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-icon i {
        font-size: 1rem;
    }
}

/* ========================================
   CATALOG SUMMARY STYLES
   ======================================== */

/* Catalog Summary - General Item Count (Subtle) */
.catalog-summary {
    margin: 1rem 0 1.5rem 0;
    padding: 0.5rem 0;
}

.summary-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.total-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: #999999;
    opacity: 0.8;
}

.total-count i {
    font-size: 0.75rem;
    color: #999999;
    opacity: 0.6;
}

.total-count #totalItemNumber {
    font-weight: 500;
    color: #666666;
    font-size: 0.8rem;
}

/* Responsive Summary */
@media (max-width: 768px) {
    .catalog-summary {
        margin: 0.75rem 0 1rem 0;
        padding: 0.25rem 0;
    }
    
    .summary-info {
        justify-content: center;
    }
    
    .total-count {
        font-size: 0.75rem;
    }
    
    .total-count #totalItemNumber {
        font-size: 0.75rem;
    }
}

/* ========================================
   CATEGORY NAVIGATION COUNT BADGES
   ======================================== */

/* Category Count Badges for Navigation Buttons */
.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    background: #000000;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
    margin-left: 8px;
    padding: 0 6px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.category-btn:hover .category-count {
    background: #333333;
    transform: scale(1.05);
}

.category-btn.active .category-count {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Footer */
.card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.tag-count {
    padding: 4px 8px;
    background: #f0f0f0;
    color: #666666;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid #e0e0e0;
}

/* Responsive adjustments for modern cards */
@media (max-width: 768px) {
    .modern-content {
        padding: 16px;
    }
    
    .item-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .item-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .card-content-section {
        padding: 20px;
        gap: 16px;
    }
    
    .card-image-section {
        height: 180px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .modern-spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .spec-value {
        text-align: left;
    }
}