/* Items Page Specific Styles */

.items-count {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

/* Category Filter Section */
.category-filter-section {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #eee;
}

.category-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-pill {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.category-pill:hover {
    background: #fff3e0;
    color: #5e10a1;
    border-color: #5e10a1;
}

.category-pill.active {
    background: #5e10a1;
    color: white;
    font-weight: 700;
}

.reset-filter-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    color: #666;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    display: inline-block;
}

.reset-filter-btn:hover {
    background: #5e10a1;
    color: white;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

@media (min-width: 1200px) {
    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Item Card */
.item-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #eee;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    border-color: #5e10a1;
}

.item-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f5f5f5;
}

.item-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.item-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.item-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.stat-icon {
    font-size: 14px;
}

.stat-value {
    font-weight: 700;
    color: #5e10a1;
}

.stat-label {
    color: #666;
}

/* Hospital Mini Cards */
.item-hospitals {
    flex: 1;
    margin-bottom: 16px;
}

.hospitals-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    font-weight: 500;
}

.hospital-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.hospital-mini-card:hover {
    background: #fff;
    border-color: #5e10a1;
    transform: translateX(4px);
}

.hospital-mini-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
}

.hospital-mini-info {
    flex: 1;
    min-width: 0;
}

.hospital-mini-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hospital-mini-stats {
    font-size: 12px;
    color: #999;
}

.btn-view-hospitals {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #5e10a1;
    border: 2px solid #5e10a1;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view-hospitals:hover {
    background: #5e10a1;
    color: white;
}

/* Empty State */
.items-empty {
    text-align: center;
    padding: 80px 20px;
}

.items-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.items-empty-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.items-empty-text {
    font-size: 14px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .category-filter-section {
        padding: 16px;
    }

    .category-pills {
        gap: 8px;
    }

    .category-pill {
        font-size: 12px;
        padding: 6px 12px;
    }

    .items-grid {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .item-card {
        padding: 20px;
    }

    .item-name {
        font-size: 18px;
    }

    .item-stats {
        gap: 12px;
    }

    .hospital-mini-card {
        padding: 10px;
    }

    .hospital-mini-image {
        width: 40px;
        height: 40px;
    }

    .hospital-mini-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .category-filter-section {
        padding: 12px;
    }

    .item-card {
        padding: 16px;
    }

    .item-name {
        font-size: 16px;
    }
}
