/* Profile Catalog Layout - Sidebar + Content Grid */
.profile-catalog-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Profile Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-search-box {
    position: relative;
    width: 100%;
}

.profile-search-box input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 2px solid var(--border-color, #ddd);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition-fast, 0.2s);
}

.profile-search-box i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.profile-search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.profile-categories {
    background: var(--surface-color, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 0.5rem;
}

.profile-categories h4 {
    margin: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary, #666);
    letter-spacing: 0.5px;
}

.profile-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-category-item {
    margin: 0.25rem 0;
}

.profile-category-btn {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary, #333);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-category-btn:hover {
    background: rgba(0, 119, 190, 0.08);
    color: var(--primary-color);
}

.profile-category-btn.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.profile-category-count {
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    background: var(--bg-color, #f3f4f6);
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-secondary, #666);
}

.profile-category-btn.active .profile-category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Profile Content Area */
.profile-content {
    min-height: 400px;
}

.profile-category-section {
    margin-bottom: 2.5rem;
}

.profile-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color, #e5e7eb);
}

.profile-category-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary, #333);
    font-weight: 600;
}

.profile-category-header .category-count {
    font-size: 0.85rem;
    padding: 0.25rem 0.65rem;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-weight: 600;
}

/* Items Grid */
.profile-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.profile-items-grid .item-card {
    border: 2px solid var(--border-color, #e5e7eb);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    background: white;
    padding: 1rem;
}

.profile-items-grid .item-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(0, 119, 190, 0.15);
    transform: translateY(-4px);
}

/* Empty State */
.profile-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.profile-empty-state i {
    font-size: 3rem;
    color: var(--border-color, #ddd);
    margin-bottom: 1rem;
}

.profile-empty-state h3 {
    color: var(--text-primary);
    margin: 0.5rem 0;
}

.profile-empty-state p {
    margin: 0.5rem 0 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-catalog-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .profile-sidebar {
        order: -1;
    }

    .profile-categories {
        max-height: none;
    }

    .profile-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .profile-items-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .profile-category-header h3 {
        font-size: 1rem;
    }
}